Commit 8c012345 authored by Vincent Pelletier's avatar Vincent Pelletier

Do not use integers as dictionary value placeholder as python instanciates as many objects.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18510 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 085d1985
......@@ -1246,16 +1246,16 @@ class Catalog(Folder,
for table in self.getCatalogSearchTableIds():
field_list = self._getCatalogSchema(table=table)
for field in field_list:
keys[field] = 1
keys['%s.%s' % (table, field)] = 1 # Is this inconsistent ?
keys[field] = None
keys['%s.%s' % (table, field)] = None # Is this inconsistent ?
for related in self.getSQLCatalogRelatedKeyList():
related_tuple = related.split('|')
related_key = related_tuple[0].strip()
keys[related_key] = 1
keys[related_key] = None
for scriptable in self.getSQLCatalogScriptableKeyList():
scriptable_tuple = scriptable.split('|')
scriptable = scriptable_tuple[0].strip()
keys[scriptable] = 1
keys[scriptable] = None
keys = keys.keys()
keys.sort()
return keys
......
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