From 24be787b6cfdd9dba63c72d2a01e4fd381b0249f Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Thu, 19 May 2005 12:03:53 +0000 Subject: [PATCH] Add source_transport and destination_transport. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3050 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/PropertySheet/Arrow.py | 63 +++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/product/ERP5/PropertySheet/Arrow.py b/product/ERP5/PropertySheet/Arrow.py index 56c611c126..b58e294532 100755 --- a/product/ERP5/PropertySheet/Arrow.py +++ b/product/ERP5/PropertySheet/Arrow.py @@ -544,6 +544,68 @@ class Arrow: 'acquisition_depends' : None, 'alt_accessor_id' : ('_categoryGetDestinationBudgetRelativeUrl', ), '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', @@ -553,6 +615,7 @@ class Arrow: 'source_payment', 'destination_payment', 'source_project', 'destination_project', 'source_budget', 'destination_budget', + 'source_transport', 'destination_transport', # Virtual categories 'source_region', 'destination_region', ) -- 2.30.9