From cf817b7d3a8675c3295f0f69dc8e76f4df0e3810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Thu, 8 Apr 2010 15:29:02 +0000 Subject: [PATCH] - test for the fact, that during navigating next/previous bogus form_id is *not* reused, implemented in r34365 Added Foos and Bars module, which contains Foos or Bars (with all needed logic). Real test in testSelectionPreviousNextButtonsDoesNotKeepBogusFormId. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34403 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_types/Foo%20Bar%20Module/view.xml | 91 ++++++++++ .../ModuleTemplateItem/foo_bar_module.xml | 96 +++++++++++ ...viousNextButtonsDoesNotKeepBogusFormId.xml | 128 +++++++++++++++ .../allowed_content_types.xml | 4 + .../base_category_list.xml | 3 + .../portal_types/Foo%20Bar%20Module.xml | 153 +++++++++++++++++ .../FooBarModule_createObjects.xml | 141 ++++++++++++++++ .../FooBarModule_viewFooBarList.xml | 155 ++++++++++++++++++ .../FooBarModule_viewFooBarList/listbox.xml | 135 +++++++++++++++ .../erp5_ui_test/ListBoxZuite_reset.xml | 2 +- bt5/erp5_ui_test/bt/revision | 2 +- bt5/erp5_ui_test/bt/template_action_path_list | 1 + bt5/erp5_ui_test/bt/template_module_id_list | 1 + ...late_portal_type_allowed_content_type_list | 2 + .../template_portal_type_base_category_list | 1 + .../bt/template_portal_type_id_list | 1 + 16 files changed, 914 insertions(+), 2 deletions(-) create mode 100644 bt5/erp5_ui_test/ActionTemplateItem/portal_types/Foo%20Bar%20Module/view.xml create mode 100644 bt5/erp5_ui_test/ModuleTemplateItem/foo_bar_module.xml create mode 100644 bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testSelectionPreviousNextButtonsDoesNotKeepBogusFormId.xml create mode 100644 bt5/erp5_ui_test/PortalTypeTemplateItem/portal_types/Foo%20Bar%20Module.xml create mode 100644 bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooBarModule_createObjects.xml create mode 100644 bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooBarModule_viewFooBarList.xml create mode 100644 bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooBarModule_viewFooBarList/listbox.xml diff --git a/bt5/erp5_ui_test/ActionTemplateItem/portal_types/Foo%20Bar%20Module/view.xml b/bt5/erp5_ui_test/ActionTemplateItem/portal_types/Foo%20Bar%20Module/view.xml new file mode 100644 index 0000000000..81b62d05ea --- /dev/null +++ b/bt5/erp5_ui_test/ActionTemplateItem/portal_types/Foo%20Bar%20Module/view.xml @@ -0,0 +1,91 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>action_type/object_list</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_list</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>view</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Action Information</string> </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>1.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>View</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/FooBarModule_viewFooBarList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/ModuleTemplateItem/foo_bar_module.xml b/bt5/erp5_ui_test/ModuleTemplateItem/foo_bar_module.xml new file mode 100644 index 0000000000..86a447377f --- /dev/null +++ b/bt5/erp5_ui_test/ModuleTemplateItem/foo_bar_module.xml @@ -0,0 +1,96 @@ +<module> + <id>foo_bar_module</id> + <permission_list> + <permission type='tuple'> + <name>Access Transient Objects</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Access contents information</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Access session data</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add portal content</name> + <role>Assignor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Add portal folders</name> + <role>Assignor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Change local roles</name> + <role>Assignor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Copy or Move</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Delete objects</name> + <role>Assignor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>List folder contents</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>Modify portal content</name> + <role>Assignor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>View</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Manager</role> + </permission> + <permission type='tuple'> + <name>View History</name> + <role>Assignee</role> + <role>Assignor</role> + <role>Associate</role> + <role>Auditor</role> + <role>Author</role> + <role>Manager</role> + </permission> + </permission_list> + <portal_type>Foo Bar Module</portal_type> + <title>Foos and Bars</title> +</module> \ No newline at end of file diff --git a/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testSelectionPreviousNextButtonsDoesNotKeepBogusFormId.xml b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testSelectionPreviousNextButtonsDoesNotKeepBogusFormId.xml new file mode 100644 index 0000000000..bf94a2cef3 --- /dev/null +++ b/bt5/erp5_ui_test/PathTemplateItem/portal_tests/document_zuite/testSelectionPreviousNextButtonsDoesNotKeepBogusFormId.xml @@ -0,0 +1,128 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <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_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_text</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n + xmlns:metal="http://xml.zope.org/namespaces/metal">\n +<head>\n +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n +<title>Test Previous and Next buttons for Selection does not keep bogus `form_id`</title>\n +</head>\n +<body>\n +<table cellpadding="1" cellspacing="1" border="1">\n +<thead>\n +<tr><td rowspan="1" colspan="3">Test Previous and Next buttons for Selection\n +does not keep bogus `form_id`.</td></tr>\n +</thead><tbody>\n +<tal:block metal:use-macro="here/ListBoxZuite_CommonTemplate/macros/init" />\n +<tr>\n + <td>open</td>\n + <td>${base_url}/foo_bar_module/FooBarModule_createObjects?num:int=1</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>assertTextPresent</td>\n + <td>Created Successfully.</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>open</td>\n + <td>${base_url}/foo_bar_module/Zuite_waitForActivities</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>assertTextPresent</td>\n + <td>Done.</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>open</td>\n + <td>${base_url}/foo_bar_module/view</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>clickAndWait</td>\n + <td>link=foo_0</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>clickAndWait</td>\n + <td>link=View</td>\n + <td></td>\n +</tr>\n +<!-- Prev / Next -->\n +<tr>\n + <td>clickAndWait</td>\n + <td>//div[@id=\'context_bar\']//a[@title=\'Previous\']</td>\n + <td></td>\n +</tr>\n +<tr>\n + <td>assertAbsoluteLocation</td>\n + <td tal:content="string:glob:${here/portal_url}/foo_bar_module/bar_0/view*" />\n + <td></td>\n +</tr>\n +\n +</tbody></table>\n +</body>\n +</html>\n + + +]]></string> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>testSelectionPreviousNextButtonsDoesNotKeepBogusFormId</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_ui_test/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml index b569fcf973..aafae4aeec 100644 --- a/bt5/erp5_ui_test/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml +++ b/bt5/erp5_ui_test/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -6,6 +6,10 @@ <portal_type id="Foo"> <item>Foo Line</item> </portal_type> + <portal_type id="Foo Bar Module"> + <item>Bar</item> + <item>Foo</item> + </portal_type> <portal_type id="Foo Line"> <item>Foo Line</item> </portal_type> diff --git a/bt5/erp5_ui_test/PortalTypeBaseCategoryTemplateItem/base_category_list.xml b/bt5/erp5_ui_test/PortalTypeBaseCategoryTemplateItem/base_category_list.xml index bf3a525988..894f53bcec 100644 --- a/bt5/erp5_ui_test/PortalTypeBaseCategoryTemplateItem/base_category_list.xml +++ b/bt5/erp5_ui_test/PortalTypeBaseCategoryTemplateItem/base_category_list.xml @@ -4,6 +4,9 @@ <item>foo_big_category</item> <item>foo_category</item> </portal_type> + <portal_type id="Foo Bar Module"> + <item>business_application</item> + </portal_type> <portal_type id="Foo Line"> <item>foo_category</item> </portal_type> diff --git a/bt5/erp5_ui_test/PortalTypeTemplateItem/portal_types/Foo%20Bar%20Module.xml b/bt5/erp5_ui_test/PortalTypeTemplateItem/portal_types/Foo%20Bar%20Module.xml new file mode 100644 index 0000000000..2066d8270b --- /dev/null +++ b/bt5/erp5_ui_test/PortalTypeTemplateItem/portal_types/Foo%20Bar%20Module.xml @@ -0,0 +1,153 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_property_domain_dict</string> </key> + <value> + <dictionary> + <item> + <key> <string>short_title</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> <string>folder_icon.gif</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string> A Folder is a subclass of Base but not of XMLObject.\r\n + Folders are not considered as documents and are therefore\r\n + not synchronisable.\r\n +\r\n + ERP5 folders are implemented as CMFBTreeFolder objects\r\n + and can store up to a million documents on a standard\r\n + computer.\r\n + ERP5 folders will eventually use in the near future the\r\n + AdaptableStorage implementation in order to reach performances\r\n + of 10 or 100 millions of documents in a single folder.\r\n +\r\n + ERP5 folders include an automatic id generation feature\r\n + which allows user not to define an id when they create\r\n + a new document in a folder.\r\n +\r\n + ERP5 folders use the ZSQLCatalog to search for objects\r\n + or display content. This requires a method called\r\n + *z_search_folder* to be put inside the ZSQLCatalog object\r\n + of the ERP5 portal.\r\n +\r\n + An ERP5 Binder document class will eventually be defined\r\n + in order to implement a binder of documents which can itself\r\n + be categorized.\r\n + </string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addFolder</string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <tuple> + <string>module</string> + </tuple> + </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string>document_icon.gif</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Foo Bar Module</string> </value> + </item> + <item> + <key> <string>immediate_view</string> </key> + <value> <string>Folder_view</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>meta_type</string> </key> + <value> <string>ERP5 Folder</string> </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Base Type</string> </value> + </item> + <item> + <key> <string>product</string> </key> + <value> <string>ERP5Type</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>domain_name</string> </key> + <value> <string>erp5_ui</string> </value> + </item> + <item> + <key> <string>property_name</string> </key> + <value> <string>short_title</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>domain_name</string> </key> + <value> <string>erp5_ui</string> </value> + </item> + <item> + <key> <string>property_name</string> </key> + <value> <string>title</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooBarModule_createObjects.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooBarModule_createObjects.xml new file mode 100644 index 0000000000..d72d31f110 --- /dev/null +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooBarModule_createObjects.xml @@ -0,0 +1,141 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </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>"""Create objects with given parameters"""\n +for i in range(start, start + num):\n + context.newContent(id = \'foo_\' + str(i), title = \'Foo Title %d\' % i, portal_type=\'Foo\')\n +for i in range(start, start + num):\n + context.newContent(id = \'bar_\' + str(i), title = \'Bar Title %d\' % i, portal_type=\'Bar\')\n +\n +return \'Created Successfully.\'\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>start = 0, num = 0</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>2</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>start</string> + <string>num</string> + <string>_getiter_</string> + <string>range</string> + <string>i</string> + <string>_getattr_</string> + <string>context</string> + <string>str</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <tuple> + <int>0</int> + <int>0</int> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>FooBarModule_createObjects</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Create Objects</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooBarModule_viewFooBarList.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooBarModule_viewFooBarList.xml new file mode 100644 index 0000000000..5c2f7a21c2 --- /dev/null +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooBarModule_viewFooBarList.xml @@ -0,0 +1,155 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <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/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string>Base_doSelect</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left</string> + <string>right</string> + <string>center</string> + <string>bottom</string> + <string>hidden</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list> + <string>listbox</string> + </list> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>FooBarModule_viewFooBarList</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>FooBarModule_viewFooBarList</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_list</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Foos and Bars</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>update_action_title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooBarModule_viewFooBarList/listbox.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooBarModule_viewFooBarList/listbox.xml new file mode 100644 index 0000000000..7cfbea6701 --- /dev/null +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/FooBarModule_viewFooBarList/listbox.xml @@ -0,0 +1,135 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>columns</string> + <string>selection_name</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>listbox</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>columns</string> </key> + <value> + <list> + <tuple> + <string>id</string> + <string>ID</string> + </tuple> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>getQuantity</string> + <string>Quantity</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_list_mode_listbox</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>delete</string> + <string>delete</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string>foo_bar_module_selection</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Foos and Bars</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_reset.xml b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_reset.xml index 71c67688a5..e138b1bc52 100644 --- a/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_reset.xml +++ b/bt5/erp5_ui_test/SkinTemplateItem/portal_skins/erp5_ui_test/ListBoxZuite_reset.xml @@ -56,7 +56,7 @@ <value> <string>"""Reset everything for the test"""\n \n # Clean up the contents.\n -for name in (\'foo_module\', \'bar_module\'):\n +for name in (\'foo_module\', \'bar_module\', \'foo_bar_module\'):\n module = getattr(context, name)\n module.manage_delObjects(list(module.objectIds()))\n module.setLastId(1)\n diff --git a/bt5/erp5_ui_test/bt/revision b/bt5/erp5_ui_test/bt/revision index 4c7798cefd..8d28c8c9eb 100644 --- a/bt5/erp5_ui_test/bt/revision +++ b/bt5/erp5_ui_test/bt/revision @@ -1 +1 @@ -553 \ No newline at end of file +554 \ No newline at end of file diff --git a/bt5/erp5_ui_test/bt/template_action_path_list b/bt5/erp5_ui_test/bt/template_action_path_list index dbf5ad8ec0..b3d66e3465 100644 --- a/bt5/erp5_ui_test/bt/template_action_path_list +++ b/bt5/erp5_ui_test/bt/template_action_path_list @@ -2,6 +2,7 @@ Bar Module | view Bar | list Bar | performance Bar | view +Foo Bar Module | view Foo Line | view Foo Module | list Foo Module | list_ui diff --git a/bt5/erp5_ui_test/bt/template_module_id_list b/bt5/erp5_ui_test/bt/template_module_id_list index ceab6244de..35fe4c23dd 100644 --- a/bt5/erp5_ui_test/bt/template_module_id_list +++ b/bt5/erp5_ui_test/bt/template_module_id_list @@ -1,2 +1,3 @@ bar_module +foo_bar_module foo_module \ No newline at end of file diff --git a/bt5/erp5_ui_test/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_ui_test/bt/template_portal_type_allowed_content_type_list index 2f5efdb295..d7a8500930 100644 --- a/bt5/erp5_ui_test/bt/template_portal_type_allowed_content_type_list +++ b/bt5/erp5_ui_test/bt/template_portal_type_allowed_content_type_list @@ -1,5 +1,7 @@ Bar Module | Bar Bar Module | Foo +Foo Bar Module | Bar +Foo Bar Module | Foo Foo Line | Foo Line Foo Module | Foo Foo | Foo Line \ No newline at end of file diff --git a/bt5/erp5_ui_test/bt/template_portal_type_base_category_list b/bt5/erp5_ui_test/bt/template_portal_type_base_category_list index fec4b2eedc..ec589a72ce 100644 --- a/bt5/erp5_ui_test/bt/template_portal_type_base_category_list +++ b/bt5/erp5_ui_test/bt/template_portal_type_base_category_list @@ -1,3 +1,4 @@ +Foo Bar Module | business_application Foo Line | foo_category Foo | bar_category Foo | foo_big_category diff --git a/bt5/erp5_ui_test/bt/template_portal_type_id_list b/bt5/erp5_ui_test/bt/template_portal_type_id_list index fff1b92d07..72566a9cc0 100644 --- a/bt5/erp5_ui_test/bt/template_portal_type_id_list +++ b/bt5/erp5_ui_test/bt/template_portal_type_id_list @@ -1,5 +1,6 @@ Bar Bar Module Foo +Foo Bar Module Foo Line Foo Module \ No newline at end of file -- 2.30.9