Commit e0278271 authored by Romain Courteaud's avatar Romain Courteaud

Use Base_getWorklistTableColumnIDList instead of hardcoding the column list.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24895 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a6ff1f2f
...@@ -578,15 +578,8 @@ def WorkflowTool_refreshWorklistCache(self): ...@@ -578,15 +578,8 @@ def WorkflowTool_refreshWorklistCache(self):
acceptable_key_dict = portal_catalog.getSQLCatalog().getColumnMap() acceptable_key_dict = portal_catalog.getSQLCatalog().getColumnMap()
# XXX: those hardcoded lists should be grabbed from the table dynamicaly # XXX: those hardcoded lists should be grabbed from the table dynamicaly
# (and cached). # (and cached).
table_column_id_set = ImmutableSet([ table_column_id_set = ImmutableSet(
COUNT_COLUMN_TITLE, 'security_uid', 'simulation_state', [COUNT_COLUMN_TITLE] + self.Base_getWorklistTableColumnIDList())
'validation_state', 'portal_type', 'owner', 'viewable_owner', 'parent_uid',
'title','opportunity_state', 'causality_state', 'invoice_state',
'payment_state', 'event_state', 'immobilisation_state', 'reference',
'grouping_reference', 'source_reference', 'destination_reference',
'string_index', 'int_index', 'float_index', 'has_cell_content',
'creation_date', 'modification_date'
])
security_column_id_list = ['security_uid', 'viewable_owner', 'owner'] security_column_id_list = ['security_uid', 'viewable_owner', 'owner']
(worklist_list_grouped_by_condition, worklist_metadata) = \ (worklist_list_grouped_by_condition, worklist_metadata) = \
groupWorklistListByCondition( groupWorklistListByCondition(
......
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