Commit 24be787b authored by Yoshinori Okuji's avatar Yoshinori Okuji

Add source_transport and destination_transport.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3050 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d360c1b8
...@@ -544,6 +544,68 @@ class Arrow: ...@@ -544,6 +544,68 @@ class Arrow:
'acquisition_depends' : None, 'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationBudgetRelativeUrl', ), 'alt_accessor_id' : ('_categoryGetDestinationBudgetRelativeUrl', ),
'mode' : 'w' }, 'mode' : 'w' },
# Source transport reference
{ 'id' : 'source_transport_title',
'description' : 'The title of the source transport of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_transport',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceTransportTitle', ),
'mode' : 'w' },
{ 'id' : 'source_transport_id',
'description' : 'The id of the source transport of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_transport',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceTransportId', ),
'mode' : 'w' },
{ 'id' : 'source_transport_relative_url',
'description' : 'The titles of the source transport of this movement',
'type' : 'string',
'acquisition_base_category' : ('source_transport',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getRelativeUrl',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetSourceTransportRelativeUrl', ),
'mode' : 'w' },
# Destination transport reference
{ 'id' : 'destination_transport_title',
'description' : 'The title of the destination transport of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_transport',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getTitle',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationTransportTitle', ),
'mode' : 'w' },
{ 'id' : 'destination_transport_id',
'description' : 'The id of the destination transport of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_transport',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getId',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationTransportId', ),
'mode' : 'w' },
{ 'id' : 'destination_transport_relative_url',
'description' : 'The titles of the destination transport of this movement',
'type' : 'string',
'acquisition_base_category' : ('destination_transport',),
'acquisition_portal_type' : Expression('python: portal.getPortalOrderTypeList()'),
'acquisition_copy_value' : 0,
'acquisition_accessor_id' : 'getRelativeUrl',
'acquisition_depends' : None,
'alt_accessor_id' : ('_categoryGetDestinationTransportRelativeUrl', ),
'mode' : 'w' },
) )
_categories = ( 'source', 'destination', _categories = ( 'source', 'destination',
...@@ -553,6 +615,7 @@ class Arrow: ...@@ -553,6 +615,7 @@ class Arrow:
'source_payment', 'destination_payment', 'source_payment', 'destination_payment',
'source_project', 'destination_project', 'source_project', 'destination_project',
'source_budget', 'destination_budget', 'source_budget', 'destination_budget',
'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