Commit a6915ef2 authored by Nicolas Dumazet's avatar Nicolas Dumazet

use more keyToId


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32730 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2ad70624
......@@ -107,17 +107,9 @@ class XMLMatrix(Folder):
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:
cell_id = self.keyToId(kw, base_id = base_id)
if cell_id is None:
return 0
i += 1
return self.get(cell_id) is not None
......
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