Commit ee85c647 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added function support


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4491 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e579378d
...@@ -668,6 +668,68 @@ class Arrow: ...@@ -668,6 +668,68 @@ class Arrow:
'acquisition_depends' : None, 'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationBudgetRelativeUrl', ), 'alt_accessor_id' : ('_categoryGetDestinationBudgetRelativeUrl', ),
'mode' : 'w' }, 'mode' : 'w' },
# Source function reference
{ 'id' : 'source_function_title',
'description' : 'The title of the source function of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_function',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceFunctionTitle', ),
'mode' : 'w' },
{ 'id' : 'source_function_id',
'description' : 'The id of the source function of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_function',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceFunctionId', ),
'mode' : 'w' },
{ 'id' : 'source_function_relative_url',
'description' : 'The titles of the source function of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_function',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getRelativeUrl',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceFunctionRelativeUrl', ),
'mode' : 'w' },
# Destination function reference
{ 'id' : 'destination_function_title',
'description' : 'The title of the destination function of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_function',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationFunctionTitle', ),
'mode' : 'w' },
{ 'id' : 'destination_function_id',
'description' : 'The id of the destination function of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_function',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationFunctionId', ),
'mode' : 'w' },
{ 'id' : 'destination_function_relative_url',
'description' : 'The titles of the destination function of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_function',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getRelativeUrl',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationFunctionRelativeUrl', ),
'mode' : 'w' },
# Source transport reference # Source transport reference
{ 'id' : 'source_transport_title', { 'id' : 'source_transport_title',
'description' : 'The title of the source transport of this movement', 'description' : 'The title of the source transport of this movement',
...@@ -741,6 +803,7 @@ class Arrow: ...@@ -741,6 +803,7 @@ class Arrow:
'source_function', 'destination_function', 'source_function', 'destination_function',
'source_project', 'destination_project', 'source_project', 'destination_project',
'source_budget', 'destination_budget', 'source_budget', 'destination_budget',
'source_function', 'destination_function',
'source_transport', 'destination_transport', 'source_transport', 'destination_transport',
# Virtual categories # Virtual categories
'source_region', 'destination_region', 'source_region', 'destination_region',
......
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