Commit 095c7477 authored by Jérome Perrin's avatar Jérome Perrin

pass query_table argument to related keys.

related keys should use <dtml-var query_table> instead of hardcoding catalog.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5904 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d7be7ed8
...@@ -1639,6 +1639,7 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base): ...@@ -1639,6 +1639,7 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
related_method = getattr(self, method_id, None) related_method = getattr(self, method_id, None)
if related_method is not None: if related_method is not None:
table_id = {'src__' : 1} # Return query source, do not evaluate table_id = {'src__' : 1} # Return query source, do not evaluate
table_id['query_table'] = query_table
table_index = 0 table_index = 0
for t_tuple in related_table_map[(table_list,method_id)]: for t_tuple in related_table_map[(table_list,method_id)]:
table_id['table_%s' % table_index] = t_tuple[1] # table_X is set to mapped id table_id['table_%s' % table_index] = t_tuple[1] # table_X is set to mapped id
......
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