From 404e28989959bce479dc7221093deff5b5c863fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 27 Sep 2007 12:10:40 +0000 Subject: [PATCH] Project_viewDocumentList/listbox: * use getPortalDocumentTypeList as list method, as relationship between Document and Projects changed. * specify checked_permission | View in parameter_list (this rocks) * use getPortalDocumentTypeList instead of referencing obsolete portal types git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16653 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../Project_viewDocumentList/listbox.xml | 91 +++++++++---------- bt5/erp5_project/bt/revision | 2 +- 2 files changed, 43 insertions(+), 50 deletions(-) diff --git a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_viewDocumentList/listbox.xml b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_viewDocumentList/listbox.xml index e6570825f1..98bc4a4d61 100644 --- a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_viewDocumentList/listbox.xml +++ b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_viewDocumentList/listbox.xml @@ -186,6 +186,10 @@ <key> <string>columns</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>count_method</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>css_class</string> </key> <value> <string></string> </value> @@ -251,9 +255,15 @@ <value> <string></string> </value> </item> <item> - <key> <string>portal_types</string> </key> + <key> <string>page_template</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>portal_types</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> <item> <key> <string>report_root_list</string> </key> <value> <string></string> </value> @@ -350,7 +360,7 @@ <string>Index</string> </tuple> <tuple> - <string>translated_simulation_state</string> + <string>translated_simulation_state_title</string> <string>State</string> </tuple> </list> @@ -388,11 +398,7 @@ <value> <list> <tuple> - <string>id</string> - <string>ID</string> - </tuple> - <tuple> - <string>portal_type</string> + <string>translated_portal_type</string> <string>Type</string> </tuple> <tuple> @@ -420,7 +426,7 @@ <string>Index</string> </tuple> <tuple> - <string>translated_simulation_state</string> + <string>translated_simulation_state_title</string> <string>State</string> </tuple> </list> @@ -441,7 +447,12 @@ <item> <key> <string>default_params</string> </key> <value> - <list/> + <list> + <tuple> + <string>checked_permission</string> + <string>View</string> + </tuple> + </list> </value> </item> <item> @@ -497,7 +508,7 @@ <item> <key> <string>list_method</string> </key> <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> </value> </item> <item> @@ -513,44 +524,7 @@ <item> <key> <string>portal_types</string> </key> <value> - <list> - <tuple> - <string>ImageDocument</string> - <string>ImageDocument</string> - </tuple> - <tuple> - <string>Presentation</string> - <string>Presentation</string> - </tuple> - <tuple> - <string>Text</string> - <string>Text</string> - </tuple> - <tuple> - <string>Spreadsheet</string> - <string>Spreadsheet</string> - </tuple> - <tuple> - <string>DMS File</string> - <string>DMS File</string> - </tuple> - <tuple> - <string>External Web Page</string> - <string>External Web Page</string> - </tuple> - <tuple> - <string>External Library File</string> - <string>External Library File</string> - </tuple> - <tuple> - <string>Graphic</string> - <string>Graphic</string> - </tuple> - <tuple> - <string>PdfDocument</string> - <string>PdfDocument</string> - </tuple> - </list> + <list/> </value> </item> <item> @@ -630,6 +604,25 @@ </pickle> </record> <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.TALESField</string> + <string>TALESMethod</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(t, t) for t in context.getPortalDocumentTypeList()]</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> <pickle> <tuple> <tuple> @@ -643,7 +636,7 @@ <dictionary> <item> <key> <string>method_name</string> </key> - <value> <string>getSourceProjectRelatedValueList</string> </value> + <value> <string>getFollowUpRelatedValueList</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_project/bt/revision b/bt5/erp5_project/bt/revision index a540f59f28..2c136b29b5 100644 --- a/bt5/erp5_project/bt/revision +++ b/bt5/erp5_project/bt/revision @@ -1 +1 @@ -301 \ No newline at end of file +302 \ No newline at end of file -- 2.30.9