From 1914ac0be9714b957c7195da4065135a57096e02 Mon Sep 17 00:00:00 2001 From: Gabriel Monnerat <gabriel@tiolive.com> Date: Mon, 6 Dec 2010 08:35:40 +0000 Subject: [PATCH] added script to change the display mode of listbox git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41145 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../Base_setListBoxDisplayMode.xml | 121 ++++++++++++++++++ .../template_erp5_web_ung.xml | 3 +- bt5/erp5_web_ung_theme/bt/revision | 2 +- 3 files changed, 124 insertions(+), 2 deletions(-) create mode 100644 bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/Base_setListBoxDisplayMode.xml diff --git a/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/Base_setListBoxDisplayMode.xml b/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/Base_setListBoxDisplayMode.xml new file mode 100644 index 0000000000..48e894d5a0 --- /dev/null +++ b/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/Base_setListBoxDisplayMode.xml @@ -0,0 +1,121 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>context.portal_selections.setListboxDisplayMode(context.REQUEST, \n + \'DomainTreeMode\',\n + \'ung_document_list_selection\')\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>_getattr_</string> + <string>context</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Base_setListBoxDisplayMode</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/template_erp5_web_ung.xml b/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/template_erp5_web_ung.xml index c1b64657b4..c3d77b2733 100644 --- a/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/template_erp5_web_ung.xml +++ b/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/template_erp5_web_ung.xml @@ -58,6 +58,7 @@ global js_list js_list | python:[];\n global css_list css_list | python:[];\n dummy python:css_list.extend(css_list_ung_template);\n + dummy python:context.Base_setListBoxDisplayMode();\n js_url_list python:[\'jquery/core/jquery.js\',\n \'jquery/ui/js/jquery-ui.js\',\n \'ung_js/ung.js\'];\n @@ -65,7 +66,7 @@ <tal:block metal:use-macro="here/template_erp5_xhtml_style/macros/master">\n <tal:block metal:fill-slot="layout">\n <div class="container">\n - <div class="navigation">\n + <div class="navigation"> \n <tal:block tal:condition="python: layout_form is not None">\n <tal:block tal:repeat="aggregate python: [(\'navigation\', navigation_area)]">\n <tal:block metal:use-macro="here/aggregate_render/macros/aggregate_render"/>\n diff --git a/bt5/erp5_web_ung_theme/bt/revision b/bt5/erp5_web_ung_theme/bt/revision index 90be1cdd8e..c4fbb1cfac 100644 --- a/bt5/erp5_web_ung_theme/bt/revision +++ b/bt5/erp5_web_ung_theme/bt/revision @@ -1 +1 @@ -95 \ No newline at end of file +97 \ No newline at end of file -- 2.30.9