Commit f951aaba authored by Nicolas Dumazet's avatar Nicolas Dumazet

use enumerate


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32739 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 704504f9
......@@ -146,14 +146,12 @@ class XMLMatrix(Folder):
base_id = kwd.get('base_id', "cell")
if not self.index.has_key(base_id):
return 0
i = 0
for my_id in kw:
for i, my_id in enumerate(kw):
if self.index[base_id].has_key(i):
if not self.index[base_id][i].has_key(my_id):
return 0
else:
return 0
i += 1
return 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment