From 4cac0c0a600da19d05f958c7418783fdca41bb02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Mon, 30 Jun 2008 15:39:13 +0000 Subject: [PATCH] - for transformation operation allow to choose getPortalSerivceTypeList - for transformation transformed resource allow to choose getPortalProductTypeList git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22108 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../my_resource_title.xml | 37 ++++++++++++++++++- .../my_resource_title.xml | 12 ++++-- bt5/erp5_pdm/bt/revision | 2 +- 3 files changed, 45 insertions(+), 6 deletions(-) diff --git a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationOptionalResource_view/my_resource_title.xml b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationOptionalResource_view/my_resource_title.xml index 8ef3d3e67b..3ce9d755e9 100644 --- a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationOptionalResource_view/my_resource_title.xml +++ b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationOptionalResource_view/my_resource_title.xml @@ -12,7 +12,9 @@ <item> <key> <string>delegated_list</string> </key> <value> - <list/> + <list> + <string>portal_type</string> + </list> </value> </item> <item> @@ -61,6 +63,12 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> @@ -80,6 +88,17 @@ <key> <string>form_id</string> </key> <value> <string>TransformationOptionalResource_viewFieldLibrary</string> </value> </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Resource</string> + <string>Resource</string> + </tuple> + </list> + </value> + </item> <item> <key> <string>target</string> </key> <value> <string>Click to edit the target</string> </value> @@ -90,4 +109,20 @@ </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(x, x) for x in (here.getPortalProductTypeList() + here.getPortalServiceTypeList())]</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationTransformedResource_viewFieldLibrary/my_resource_title.xml b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationTransformedResource_viewFieldLibrary/my_resource_title.xml index 438e12048c..23b54fca2d 100644 --- a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationTransformedResource_viewFieldLibrary/my_resource_title.xml +++ b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/TransformationTransformedResource_viewFieldLibrary/my_resource_title.xml @@ -65,7 +65,7 @@ <value> <string></string> </value> </item> <item> - <key> <string>portal_type</string> </key> + <key> <string>portal_type</string> </key> <value> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> </value> @@ -74,6 +74,10 @@ <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -94,7 +98,7 @@ <value> <string>Base_viewFieldLibrary</string> </value> </item> <item> - <key> <string>portal_type</string> </key> + <key> <string>portal_type</string> </key> <value> <list> <tuple> @@ -109,7 +113,7 @@ <value> <string>Click to edit the target</string> </value> </item> <item> - <key> <string>title</string> </key> + <key> <string>title</string> </key> <value> <string>Material</string> </value> </item> </dictionary> @@ -129,7 +133,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: [(x, x) for x in here.getPortalResourceTypeList()]</string> </value> + <value> <string>python: [(x, x) for x in here.getPortalProductTypeList()]</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_pdm/bt/revision b/bt5/erp5_pdm/bt/revision index 1edbdbab42..cb37cb5c1f 100644 --- a/bt5/erp5_pdm/bt/revision +++ b/bt5/erp5_pdm/bt/revision @@ -1 +1 @@ -185 \ No newline at end of file +186 \ No newline at end of file -- 2.30.9