Commit 2237cbdf authored by Guillaume Michon's avatar Guillaume Michon

Added categories and properties for project and budget


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1033 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 246eadbb
...@@ -420,11 +420,137 @@ class Arrow: ...@@ -420,11 +420,137 @@ class Arrow:
'acquisition_accessor_id' : 'getTitle', 'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None, 'acquisition_depends' : None,
'mode' : 'w' }, 'mode' : 'w' },
# Source project reference
{ 'id' : 'source_project_title',
'description' : 'The title of the source project of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_project',),
'acquisition_portal_type' : order_type_list,
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceProjectTitle', ),
'mode' : 'w' },
{ 'id' : 'source_project_id',
'description' : 'The id of the source project of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_project',),
'acquisition_portal_type' : order_type_list,
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceProjectId', ),
'mode' : 'w' },
{ 'id' : 'source_project_relative_url',
'description' : 'The titles of the source project of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_project',),
'acquisition_portal_type' : order_type_list,
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getRelativeUrl',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceProjectRelativeUrl', ),
'mode' : 'w' },
# Destination project reference
{ 'id' : 'destination_project_title',
'description' : 'The title of the destination project of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_project',),
'acquisition_portal_type' : order_type_list,
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationProjectTitle', ),
'mode' : 'w' },
{ 'id' : 'destination_project_id',
'description' : 'The id of the destination project of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_project',),
'acquisition_portal_type' : order_type_list,
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationProjectId', ),
'mode' : 'w' },
{ 'id' : 'destination_project_relative_url',
'description' : 'The titles of the destination project of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_project',),
'acquisition_portal_type' : order_type_list,
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getRelativeUrl',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationProjectRelativeUrl', ),
'mode' : 'w' },
# Source budget reference
{ 'id' : 'source_budget_title',
'description' : 'The title of the source budget of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_budget',),
'acquisition_portal_type' : order_type_list,
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceBudgetTitle', ),
'mode' : 'w' },
{ 'id' : 'source_budget_id',
'description' : 'The id of the source budget of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_budget',),
'acquisition_portal_type' : order_type_list,
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceBudgetId', ),
'mode' : 'w' },
{ 'id' : 'source_budget_relative_url',
'description' : 'The titles of the source budget of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_budget',),
'acquisition_portal_type' : order_type_list,
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getRelativeUrl',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceBudgetRelativeUrl', ),
'mode' : 'w' },
# Destination budget reference
{ 'id' : 'destination_budget_title',
'description' : 'The title of the destination budget of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_budget',),
'acquisition_portal_type' : order_type_list,
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationBudgetTitle', ),
'mode' : 'w' },
{ 'id' : 'destination_budget_id',
'description' : 'The id of the destination budget of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_budget',),
'acquisition_portal_type' : order_type_list,
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationBudgetId', ),
'mode' : 'w' },
{ 'id' : 'destination_budget_relative_url',
'description' : 'The titles of the destination budget of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_budget',),
'acquisition_portal_type' : order_type_list,
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getRelativeUrl',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationBudgetRelativeUrl', ),
'mode' : 'w' },
) )
_categories = ( 'source', 'destination', _categories = ( 'source', 'destination',
'source_decision', 'destination_decision', 'source_decision', 'destination_decision',
'source_section', 'destination_section', 'source_section', 'destination_section',
'source_administration', 'destination_administration', 'source_administration', 'destination_administration',
'source_payment', 'destination_payment', ) 'source_payment', 'destination_payment',
'source_project', 'destination_project',
'source_budget', 'destination_budget',)
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