[Erp5-report] r24895 - /erp5/trunk/products/ERP5Type/patches/WorkflowTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Dec 15 14:09:50 CET 2008
Author: romain
Date: Mon Dec 15 14:09:42 2008
New Revision: 24895
URL: http://svn.erp5.org?rev=24895&view=rev
Log:
Use Base_getWorklistTableColumnIDList instead of hardcoding the column list.
Modified:
erp5/trunk/products/ERP5Type/patches/WorkflowTool.py
Modified: erp5/trunk/products/ERP5Type/patches/WorkflowTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/WorkflowTool.py?rev=24895&r1=24894&r2=24895&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/WorkflowTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/patches/WorkflowTool.py [utf8] Mon Dec 15 14:09:42 2008
@@ -578,15 +578,8 @@
acceptable_key_dict = portal_catalog.getSQLCatalog().getColumnMap()
# XXX: those hardcoded lists should be grabbed from the table dynamicaly
# (and cached).
- table_column_id_set = ImmutableSet([
- COUNT_COLUMN_TITLE, 'security_uid', 'simulation_state',
- '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'
- ])
+ table_column_id_set = ImmutableSet(
+ [COUNT_COLUMN_TITLE] + self.Base_getWorklistTableColumnIDList())
security_column_id_list = ['security_uid', 'viewable_owner', 'owner']
(worklist_list_grouped_by_condition, worklist_metadata) = \
groupWorklistListByCondition(
More information about the Erp5-report
mailing list