Commit 46391d12 authored by Nicolas Dumazet's avatar Nicolas Dumazet

append instead of concatenate


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32734 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aecde455
......@@ -586,10 +586,11 @@ class XMLMatrix(Folder):
Returns a list of cell values as tuples
"""
result = []
append = result.append
for id in self.getCellIdList(base_id=base_id):
o = self.get(id)
if o is not None:
result += [o]
append(o)
return result
security.declareProtected( Permissions.AccessContentsInformation,
......@@ -615,9 +616,10 @@ class XMLMatrix(Folder):
"""
ids = self.getCellIds(base_id = base_id)
my_ids = []
append = my_ids.append
for i in self.objectIds():
if i in ids:
my_ids += [i]
append(i)
if len(my_ids) > 0:
self.manage_delObjects(ids=my_ids)
......
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