From 95a16751d5a22b02dba93440d2d0c986060328aa Mon Sep 17 00:00:00 2001 From: Mayoro Diagne <mayoro@nexedi.com> Date: Sat, 11 Oct 2008 14:55:23 +0000 Subject: [PATCH] 2008-10-11: mayoro - adding column description in listbox of Page Template and ERP5 Form for SkinFolderDocumentationHelper_view git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24154 20353a03-c40f-0410-a6d1-a30d3c3de9de --- ...tionHelper_getDocumentationSectionList.xml | 1 - .../ERP5FormDocumentationHelper_view.xml | 4 +- .../my_description.xml | 148 ++++++++++++++++++ .../PageTemplateDocumentationHelper_view.xml | 4 +- .../my_description.xml | 148 ++++++++++++++++++ ...derDocumentationHelper_getERP5FormList.xml | 4 +- ...ocumentationHelper_getPageTemplateList.xml | 4 +- .../erp5_form_listbox.xml | 8 + .../page_template_listbox.xml | 8 + bt5/erp5_documentation/bt/revision | 2 +- 10 files changed, 323 insertions(+), 8 deletions(-) create mode 100644 bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/ERP5FormDocumentationHelper_view/my_description.xml create mode 100644 bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/PageTemplateDocumentationHelper_view/my_description.xml diff --git a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/DocumentationHelper_getDocumentationSectionList.xml b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/DocumentationHelper_getDocumentationSectionList.xml index 4f842b7b7e..cf03ab65af 100644 --- a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/DocumentationHelper_getDocumentationSectionList.xml +++ b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/DocumentationHelper_getDocumentationSectionList.xml @@ -180,7 +180,6 @@ for section in section_list:\n \'SkinFolderDocumentationHelper\']\n section_class_name = class_name \n sub_displayed_class = [\'DCWorkflowScriptDocumentationHelper\',\n - \'PageTemplateDocumentationHelper\',\n \'ScriptPythonDocumentationHelper\',\n \'ZSQLMethodDocumentationHelper\']\n if root_class_name == "ERP5SiteDocumentationHelper" and section_class_name in class_iterate_list:\n diff --git a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/ERP5FormDocumentationHelper_view.xml b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/ERP5FormDocumentationHelper_view.xml index 69497d50a2..bee7e7e5b0 100644 --- a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/ERP5FormDocumentationHelper_view.xml +++ b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/ERP5FormDocumentationHelper_view.xml @@ -73,7 +73,9 @@ <item> <key> <string>center</string> </key> <value> - <list/> + <list> + <string>my_description</string> + </list> </value> </item> <item> diff --git a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/ERP5FormDocumentationHelper_view/my_description.xml b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/ERP5FormDocumentationHelper_view/my_description.xml new file mode 100644 index 0000000000..4d89a1676c --- /dev/null +++ b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/ERP5FormDocumentationHelper_view/my_description.xml @@ -0,0 +1,148 @@ +<?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>default</string> + <string>enabled</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_description</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>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <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>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_description</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>DocumentationHelper_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </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>here/getDescription</string> </value> + </item> + </dictionary> + </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: not request.get(\'is_documentation_report\',False)</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/PageTemplateDocumentationHelper_view.xml b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/PageTemplateDocumentationHelper_view.xml index 5cf68bc371..fc928870cf 100644 --- a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/PageTemplateDocumentationHelper_view.xml +++ b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/PageTemplateDocumentationHelper_view.xml @@ -75,7 +75,9 @@ <item> <key> <string>center</string> </key> <value> - <list/> + <list> + <string>my_description</string> + </list> </value> </item> <item> diff --git a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/PageTemplateDocumentationHelper_view/my_description.xml b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/PageTemplateDocumentationHelper_view/my_description.xml new file mode 100644 index 0000000000..4d89a1676c --- /dev/null +++ b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/PageTemplateDocumentationHelper_view/my_description.xml @@ -0,0 +1,148 @@ +<?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>default</string> + <string>enabled</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_description</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>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <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>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_description</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>DocumentationHelper_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </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>here/getDescription</string> </value> + </item> + </dictionary> + </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: not request.get(\'is_documentation_report\',False)</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_getERP5FormList.xml b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_getERP5FormList.xml index 966d02933c..e8907bba5e 100644 --- a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_getERP5FormList.xml +++ b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_getERP5FormList.xml @@ -54,10 +54,10 @@ <item> <key> <string>_body</string> </key> <value> <string>meta_type=\'ERP5 Form\'\n -skin_list = context.getFileIdList(meta_type=meta_type)\n +skin_list = context.getFileItemList(meta_type=meta_type)\n base_uri = context.getURI()\n result = map(\n - lambda x: context.asContext(id=x, base_uri=base_uri,\n + lambda x: context.asContext(id=x[0], description=x[2], base_uri=base_uri,\n meta_type=meta_type),\n skin_list)\n return result\n diff --git a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_getPageTemplateList.xml b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_getPageTemplateList.xml index 0573cb7326..1dd6ac47c1 100644 --- a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_getPageTemplateList.xml +++ b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_getPageTemplateList.xml @@ -54,10 +54,10 @@ <item> <key> <string>_body</string> </key> <value> <string>meta_type=\'Page Template\'\n -skin_list = context.getFileIdList(meta_type=meta_type)\n +skin_list = context.getFileItemList(meta_type=meta_type)\n base_uri = context.getURI()\n result = map(\n - lambda x: context.asContext(id=x, base_uri=base_uri,\n + lambda x: context.asContext(id=x[0], description=x[2] ,base_uri=base_uri,\n meta_type=meta_type),\n skin_list)\n return result\n diff --git a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_view/erp5_form_listbox.xml b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_view/erp5_form_listbox.xml index 2f7764d5be..b2d10bb192 100644 --- a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_view/erp5_form_listbox.xml +++ b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_view/erp5_form_listbox.xml @@ -118,6 +118,10 @@ <string>id</string> <string>Id</string> </tuple> + <tuple> + <string>description</string> + <string>Description</string> + </tuple> </list> </value> </item> @@ -163,6 +167,10 @@ <string>id</string> <string>SkinFolderDocumentationHelper_getERP5FormUrl</string> </tuple> + <tuple> + <string>description</string> + <string>SkinFolderDocumentationHelper_getERP5FormUrl</string> + </tuple> </list> </value> </item> diff --git a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_view/page_template_listbox.xml b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_view/page_template_listbox.xml index 79dad261e9..ff7a77181f 100644 --- a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_view/page_template_listbox.xml +++ b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/SkinFolderDocumentationHelper_view/page_template_listbox.xml @@ -118,6 +118,10 @@ <string>id</string> <string>Id</string> </tuple> + <tuple> + <string>description</string> + <string>Description</string> + </tuple> </list> </value> </item> @@ -163,6 +167,10 @@ <string>id</string> <string>SkinFolderDocumentationHelper_getPageTemplateUrl</string> </tuple> + <tuple> + <string>description</string> + <string>SkinFolderDocumentationHelper_getPageTemplateUrl</string> + </tuple> </list> </value> </item> diff --git a/bt5/erp5_documentation/bt/revision b/bt5/erp5_documentation/bt/revision index d7019ae2ee..4701cc7931 100644 --- a/bt5/erp5_documentation/bt/revision +++ b/bt5/erp5_documentation/bt/revision @@ -1 +1 @@ -149 \ No newline at end of file +150 \ No newline at end of file -- 2.30.9