From 4e62ec1269759b27bcb50e61d493d275acc8718c Mon Sep 17 00:00:00 2001 From: Mayoro Diagne <mayoro@nexedi.com> Date: Tue, 7 Oct 2008 11:50:49 +0000 Subject: [PATCH] 2008-10-07: mayoro adding new field to display template_path_list of documented business templates git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24063 20353a03-c40f-0410-a6d1-a30d3c3de9de --- ...ocumentationHelper_getTemplatePathList.xml | 129 +++++++++++ ...sinessTemplateDocumentationHelper_view.xml | 1 + .../template_path_list_listbox.xml | 207 ++++++++++++++++++ bt5/erp5_documentation/bt/change_log | 3 + bt5/erp5_documentation/bt/revision | 2 +- 5 files changed, 341 insertions(+), 1 deletion(-) create mode 100644 bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/BusinessTemplateDocumentationHelper_getTemplatePathList.xml create mode 100644 bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/BusinessTemplateDocumentationHelper_view/template_path_list_listbox.xml diff --git a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/BusinessTemplateDocumentationHelper_getTemplatePathList.xml b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/BusinessTemplateDocumentationHelper_getTemplatePathList.xml new file mode 100644 index 0000000000..e6ffbaa134 --- /dev/null +++ b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/BusinessTemplateDocumentationHelper_getTemplatePathList.xml @@ -0,0 +1,129 @@ +<?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>template_path_list = context.getTemplatePathList()\n +result = map(\n + lambda x: context.asContext(id=x), template_path_list)\n +return result\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>**kw</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>kw</string> + <string>_getattr_</string> + <string>context</string> + <string>template_path_list</string> + <string>map</string> + <string>result</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>BusinessTemplateDocumentationHelper_getTemplatePathList</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/BusinessTemplateDocumentationHelper_view.xml b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/BusinessTemplateDocumentationHelper_view.xml index 2fd3c1af56..20d31d1a12 100644 --- a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/BusinessTemplateDocumentationHelper_view.xml +++ b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/BusinessTemplateDocumentationHelper_view.xml @@ -68,6 +68,7 @@ <key> <string>bottom</string> </key> <value> <list> + <string>template_path_list_listbox</string> <string>module_listbox</string> <string>portal_type_listbox</string> <string>dc_workflow_listbox</string> diff --git a/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/BusinessTemplateDocumentationHelper_view/template_path_list_listbox.xml b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/BusinessTemplateDocumentationHelper_view/template_path_list_listbox.xml new file mode 100644 index 0000000000..c16967e78d --- /dev/null +++ b/bt5/erp5_documentation/SkinTemplateItem/portal_skins/erp5_documentation/BusinessTemplateDocumentationHelper_view/template_path_list_listbox.xml @@ -0,0 +1,207 @@ +<?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>title</string> + <string>description</string> + <string>columns</string> + <string>list_method</string> + <string>selection_name</string> + <string>url_columns</string> + <string>enabled</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>template_path_list_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>columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</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>list_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>selection_name</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> + <item> + <key> <string>url_columns</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> + </list> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_view_mode_listbox</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string>template_path_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>Template Path List</string> </value> + </item> + <item> + <key> <string>url_columns</string> </key> + <value> + <list> + <tuple> + <string>id</string> + <string></string> + </tuple> + </list> + </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>python: context.BusinessTemplateDocumentationHelper_getBaseCategoryList() != []</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="Method" module="Products.Formulator.MethodField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>method_name</string> </key> + <value> <string>BusinessTemplateDocumentationHelper_getTemplatePathList</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_documentation/bt/change_log b/bt5/erp5_documentation/bt/change_log index 3939dfca42..827502ddeb 100644 --- a/bt5/erp5_documentation/bt/change_log +++ b/bt5/erp5_documentation/bt/change_log @@ -1,3 +1,6 @@ +2008-10-07: mayoro +adding new field to display template_path_list of documented business templates + 2008-09-27: mayoro - adding ERP5 Forms and python scripts for documenting skin_folder correctly - removing ERP5 Report Form for previous documentation of skin folder diff --git a/bt5/erp5_documentation/bt/revision b/bt5/erp5_documentation/bt/revision index 83248fb9df..bc768da71a 100644 --- a/bt5/erp5_documentation/bt/revision +++ b/bt5/erp5_documentation/bt/revision @@ -1 +1 @@ -142 \ No newline at end of file +146 \ No newline at end of file -- 2.30.9