[Erp5-report] r32730 nicolas.dumazet - /erp5/trunk/products/ERP5Type/XMLMatrix.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Feb 18 10:03:23 CET 2010
Author: nicolas.dumazet
Date: Thu Feb 18 10:03:20 2010
New Revision: 32730
URL: http://svn.erp5.org?rev=32730&view=rev
Log:
use more keyToId
Modified:
erp5/trunk/products/ERP5Type/XMLMatrix.py
Modified: erp5/trunk/products/ERP5Type/XMLMatrix.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/XMLMatrix.py?rev=32730&r1=32729&r2=32730&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/XMLMatrix.py [utf8] Thu Feb 18 10:03:20 2010
@@ -107,17 +107,9 @@
if not self.index.has_key(base_id):
return 0
- cell_id = base_id
- i = 0
- for my_id in kw:
- if self.index[base_id].has_key(i):
- if self.index[base_id][i].has_key(my_id):
- cell_id += '_%s' % self.index[base_id][i][my_id]
- else:
- return 0
- else:
- return 0
- i += 1
+ cell_id = self.keyToId(kw, base_id = base_id)
+ if cell_id is None:
+ return 0
return self.get(cell_id) is not None
More information about the Erp5-report
mailing list