From 0ef647191f47df4fa76daafa029dbe6a5f7b47e9 Mon Sep 17 00:00:00 2001 From: Fabien Morin <fabien@nexedi.com> Date: Fri, 18 Jun 2010 09:04:51 +0000 Subject: [PATCH] use some more complex selection_name : WebSection_view is used to display WebSection in all depth level, and the selection_name should be different from each level. So now it's generated using the relative_url of the current object git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36442 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_web/WebSection_view/listbox.xml | 52 ++++++++++++++++++- .../listbox.xml | 45 +++++++++++++--- bt5/erp5_web/bt/revision | 2 +- 3 files changed, 90 insertions(+), 9 deletions(-) diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_view/listbox.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_view/listbox.xml index c99d065c4b..ebcfd316a5 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_view/listbox.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_view/listbox.xml @@ -62,6 +62,14 @@ <key> <string>tales</string> </key> <value> <dictionary> + <item> + <key> <string>columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable_columns</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>field_id</string> </key> <value> <string></string> </value> @@ -70,10 +78,36 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>list_action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>portal_types</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -156,7 +190,7 @@ </item> <item> <key> <string>selection_name</string> </key> - <value> <string>section_content_selection</string> </value> + <value> <string>search_selection</string> </value> </item> <item> <key> <string>sort</string> </key> @@ -183,4 +217,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: \'%s_selection\' % (here.getRelativeUrl())</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewContentListAsRSS/listbox.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewContentListAsRSS/listbox.xml index 4a9bf7e4a8..e83f659423 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewContentListAsRSS/listbox.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewContentListAsRSS/listbox.xml @@ -175,6 +175,10 @@ <key> <string>alternate_name</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>anchor</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>columns</string> </key> <value> <string></string> </value> @@ -227,6 +231,10 @@ <key> <string>hidden</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>hide_rows_on_no_search_criterion</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>lines</string> </key> <value> @@ -261,6 +269,10 @@ <key> <string>report_tree</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>row_css_method</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>search</string> </key> <value> <string></string> </value> @@ -275,7 +287,9 @@ </item> <item> <key> <string>selection_name</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> </item> <item> <key> <string>sort</string> </key> @@ -297,6 +311,10 @@ <key> <string>title</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>untranslatable_columns</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>url_columns</string> </key> <value> <string></string> </value> @@ -445,7 +463,7 @@ <item> <key> <string>list_method</string> </key> <value> - <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> </value> </item> <item> @@ -548,11 +566,8 @@ <record id="2" aka="AAAAAAAAAAI="> <pickle> <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> </tuple> </pickle> <pickle> @@ -565,6 +580,22 @@ </pickle> </record> <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: \'%s_%s_selection\' % (form.getId(), here.getId())</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> <pickle> <tuple> <global name="Method" module="Products.Formulator.MethodField"/> diff --git a/bt5/erp5_web/bt/revision b/bt5/erp5_web/bt/revision index 7179a19790..20d91f52a5 100644 --- a/bt5/erp5_web/bt/revision +++ b/bt5/erp5_web/bt/revision @@ -1 +1 @@ -964 \ No newline at end of file +963 \ No newline at end of file -- 2.30.9