From 28e8e2dea8da8efedd720fa9a02898d0cc889699 Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Fri, 7 Dec 2007 16:33:00 +0000 Subject: [PATCH] Move erp5_km specific stuff to erp5_km. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18129 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_dms/Person_countMyContentList.xml | 164 ------------ .../erp5_dms/Person_getMyContentList.xml | 164 ------------ .../Person_viewMyContentList/listbox.xml | 242 ------------------ .../listbox_creation_date.xml | 96 ------- .../listbox_modification_date.xml | 96 ------- bt5/erp5_dms/bt/revision | 2 +- .../bt/template_catalog_datetime_key_list | 0 7 files changed, 1 insertion(+), 763 deletions(-) delete mode 100644 bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_countMyContentList.xml delete mode 100644 bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_getMyContentList.xml delete mode 100644 bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_viewMyContentList/listbox.xml delete mode 100644 bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_viewMyContentList/listbox_creation_date.xml delete mode 100644 bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_viewMyContentList/listbox_modification_date.xml create mode 100644 bt5/erp5_dms/bt/template_catalog_datetime_key_list diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_countMyContentList.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_countMyContentList.xml deleted file mode 100644 index ba345ee448..0000000000 --- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_countMyContentList.xml +++ /dev/null @@ -1,164 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <tuple> - <string>Products.PythonScripts.PythonScript</string> - <string>PythonScript</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Python_magic</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </value> - </item> - <item> - <key> <string>__ac_local_roles__</string> </key> - <value> - <none/> - </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>"""\n - This scripts counts the documents belonging to a given Person.\n - If it is called on a Person object, it counts the documents\n - which belong to that person. If it is called on another type\n - of object, it counts the document which belong to the current\n - user.\n -"""\n -if context.getPortalType() == \'Person\':\n - # If context is a person, get the user\n - user = context.getReference()\n - return context.ContributionTool_countMyContentList(user=user, **kw)\n -else:\n - return context.ContributionTool_countMyContentList(**kw)\n -</string> </value> - </item> - <item> - <key> <string>_code</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>_filepath</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>_owner</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>user</string> - <string>_apply_</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>Person_countMyContentList</string> </value> - </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_getMyContentList.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_getMyContentList.xml deleted file mode 100644 index 6a7bd1b3e6..0000000000 --- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_getMyContentList.xml +++ /dev/null @@ -1,164 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <tuple> - <string>Products.PythonScripts.PythonScript</string> - <string>PythonScript</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Python_magic</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </value> - </item> - <item> - <key> <string>__ac_local_roles__</string> </key> - <value> - <none/> - </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>"""\n - This scripts lists the documents belonging to a given Person.\n - If it is called on a Person object, it lists the documents\n - which belong to that person. If it is called on another type\n - of object, it lists the document which belong to the current\n - user.\n -"""\n -if context.getPortalType() == \'Person\':\n - # If context is a person, get the user\n - user = context.getReference()\n - return context.ContributionTool_getMyContentList(user=user, **kw)\n -else:\n - return context.ContributionTool_getMyContentList(**kw)\n -</string> </value> - </item> - <item> - <key> <string>_code</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>_filepath</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>_owner</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>user</string> - <string>_apply_</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>Person_getMyContentList</string> </value> - </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_viewMyContentList/listbox.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_viewMyContentList/listbox.xml deleted file mode 100644 index f63c4794e8..0000000000 --- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_viewMyContentList/listbox.xml +++ /dev/null @@ -1,242 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <tuple> - <string>Products.ERP5Form.ProxyField</string> - <string>ProxyField</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_owner</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>delegated_list</string> </key> - <value> - <list> - <string>title</string> - <string>columns</string> - <string>sort</string> - <string>list_method</string> - <string>count_method</string> - <string>selection_name</string> - <string>select</string> - <string>editable_columns</string> - <string>domain_tree</string> - <string>domain_root_list</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>reference</string> - <string>Reference</string> - </tuple> - <tuple> - <string>title</string> - <string>Title</string> - </tuple> - <tuple> - <string>translated_validation_state_title</string> - <string>Validation State</string> - </tuple> - <tuple> - <string>translated_portal_type</string> - <string>Type</string> - </tuple> - <tuple> - <string>creation_date</string> - <string>Creation Date</string> - </tuple> - <tuple> - <string>modification_date</string> - <string>Modification Date</string> - </tuple> - </list> - </value> - </item> - <item> - <key> <string>count_method</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> - </item> - <item> - <key> <string>domain_root_list</string> </key> - <value> - <list/> - </value> - </item> - <item> - <key> <string>domain_tree</string> </key> - <value> <int>0</int> </value> - </item> - <item> - <key> <string>editable_columns</string> </key> - <value> - <list> - <tuple> - <string>creation_date</string> - <string>Creation Date</string> - </tuple> - <tuple> - <string>modification_date</string> - <string>Modification Date</string> - </tuple> - </list> - </value> - </item> - <item> - <key> <string>field_id</string> </key> - <value> <string>listbox</string> </value> - </item> - <item> - <key> <string>form_id</string> </key> - <value> <string>DocumentModule_viewFieldLibrary</string> </value> - </item> - <item> - <key> <string>list_method</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> - </value> - </item> - <item> - <key> <string>select</string> </key> - <value> <int>0</int> </value> - </item> - <item> - <key> <string>selection_name</string> </key> - <value> <string>web_view_my_content_selection</string> </value> - </item> - <item> - <key> <string>sort</string> </key> - <value> - <list> - <tuple> - <string>reference</string> - <string>ascending</string> - </tuple> - </list> - </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>My Documents</string> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </pickle> - </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <tuple> - <string>Products.Formulator.MethodField</string> - <string>Method</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>method_name</string> </key> - <value> <string>Person_countMyContentList</string> </value> - </item> - </dictionary> - </pickle> - </record> - <record id="3" aka="AAAAAAAAAAM="> - <pickle> - <tuple> - <tuple> - <string>Products.Formulator.MethodField</string> - <string>Method</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>method_name</string> </key> - <value> <string>Person_getMyContentList</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_viewMyContentList/listbox_creation_date.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_viewMyContentList/listbox_creation_date.xml deleted file mode 100644 index 530e235539..0000000000 --- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_viewMyContentList/listbox_creation_date.xml +++ /dev/null @@ -1,96 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <tuple> - <string>Products.ERP5Form.ProxyField</string> - <string>ProxyField</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>delegated_list</string> </key> - <value> - <list/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>listbox_creation_date</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>field_id</string> </key> - <value> <string>listbox_creation_date</string> </value> - </item> - <item> - <key> <string>form_id</string> </key> - <value> <string>DocumentModule_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> -</ZopeData> diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_viewMyContentList/listbox_modification_date.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_viewMyContentList/listbox_modification_date.xml deleted file mode 100644 index 4036c9c073..0000000000 --- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Person_viewMyContentList/listbox_modification_date.xml +++ /dev/null @@ -1,96 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <tuple> - <string>Products.ERP5Form.ProxyField</string> - <string>ProxyField</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>delegated_list</string> </key> - <value> - <list/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>listbox_modification_date</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>field_id</string> </key> - <value> <string>listbox_modification_date</string> </value> - </item> - <item> - <key> <string>form_id</string> </key> - <value> <string>DocumentModule_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> -</ZopeData> diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision index c71057571f..e8cbd7d8fc 100644 --- a/bt5/erp5_dms/bt/revision +++ b/bt5/erp5_dms/bt/revision @@ -1 +1 @@ -732 \ No newline at end of file +734 \ No newline at end of file diff --git a/bt5/erp5_dms/bt/template_catalog_datetime_key_list b/bt5/erp5_dms/bt/template_catalog_datetime_key_list new file mode 100644 index 0000000000..e69de29bb2 -- 2.30.9