Commit 5660665e authored by Kevin Deldycke's avatar Kevin Deldycke

Make Matrix work again


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3233 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9a4a84bb
...@@ -520,7 +520,7 @@ class XMLMatrix(Folder): ...@@ -520,7 +520,7 @@ class XMLMatrix(Folder):
extend = id_tuple.extend extend = id_tuple.extend
for i in xrange(0, len(index)): for i in xrange(0, len(index)):
t = index[i] t = index[i]
extend(t.keys()) extend([t.keys()])
if len(id_tuple) == 0: if len(id_tuple) == 0:
return () return ()
return cartesianProduct(id_tuple) return cartesianProduct(id_tuple)
...@@ -542,7 +542,7 @@ class XMLMatrix(Folder): ...@@ -542,7 +542,7 @@ class XMLMatrix(Folder):
append = cell_id_list.append append = cell_id_list.append
for i in xrange(len(kw)): for i in xrange(len(kw)):
try: try:
append(index[i][kw[i]]) append(str(index[i][kw[i]]))
except KeyError: except KeyError:
return None return None
return '_'.join(cell_id_list) return '_'.join(cell_id_list)
......
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