Commit 96043c7e authored by Alexandre Boeglin's avatar Alexandre Boeglin

add sql_catalog_related_keys to the return value of getColumnIds.

This allows to filter and sort on sql_catalog_related_keys in ListBoxes.

Must be used in conjunction with a PropertySheet property for the accessor
to be generated, which will actually allow display in the ListBox.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3407 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 08f41113
......@@ -603,6 +603,10 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
for field in field_list:
keys[field] = 1
keys['%s.%s' % (table, field)] = 1 # Is this inconsistent ?
for related in self.sql_catalog_related_keys:
related_tuple = related.split('|')
related_key = related_tuple[0].strip()
keys[related_key] = 1
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