From 0cd5005986bbbad89c59e9686415ca7239a6609c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl> Date: Mon, 25 Sep 2006 19:56:01 +0000 Subject: [PATCH] Bugfixes for previous commit; added meaningful and translated listbox title. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10313 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../Text/jump_to_wiki_predecessor.xml | 2 +- .../Text/jump_to_wiki_successor.xml | 2 +- .../erp5_dms/DMS_getRelatedDocumentList.xml | 4 +- .../DMS_getRelatedDocumentsListboxTitle.xml | 165 ++++++++++++++++++ .../DMS_jumpToRelatedDocuments/listbox.xml | 25 ++- bt5/erp5_dms/bt/revision | 2 +- 6 files changed, 193 insertions(+), 7 deletions(-) create mode 100644 bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMS_getRelatedDocumentsListboxTitle.xml diff --git a/bt5/erp5_dms/ActionTemplateItem/portal_types/Text/jump_to_wiki_predecessor.xml b/bt5/erp5_dms/ActionTemplateItem/portal_types/Text/jump_to_wiki_predecessor.xml index a60b532638..87a3cd28c0 100644 --- a/bt5/erp5_dms/ActionTemplateItem/portal_types/Text/jump_to_wiki_predecessor.xml +++ b/bt5/erp5_dms/ActionTemplateItem/portal_types/Text/jump_to_wiki_predecessor.xml @@ -81,7 +81,7 @@ <dictionary> <item> <key> <string>text</string> </key> - <value> <string>string:${object_url}/DMS_jumpToRelatedDocuments?what=wiki_predecessors</string> </value> + <value> <string>string:${object_url}/DMS_jumpToRelatedDocuments?what=wiki_predecessor</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_dms/ActionTemplateItem/portal_types/Text/jump_to_wiki_successor.xml b/bt5/erp5_dms/ActionTemplateItem/portal_types/Text/jump_to_wiki_successor.xml index 3eff041902..8130651ea8 100644 --- a/bt5/erp5_dms/ActionTemplateItem/portal_types/Text/jump_to_wiki_successor.xml +++ b/bt5/erp5_dms/ActionTemplateItem/portal_types/Text/jump_to_wiki_successor.xml @@ -81,7 +81,7 @@ <dictionary> <item> <key> <string>text</string> </key> - <value> <string>string:${object_url}/DMS_jumpToRelatedDocuments?what=wiki_successors</string> </value> + <value> <string>string:${object_url}/DMS_jumpToRelatedDocuments?what=wiki_successor</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMS_getRelatedDocumentList.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMS_getRelatedDocumentList.xml index 778413fc74..ef73364907 100644 --- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMS_getRelatedDocumentList.xml +++ b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMS_getRelatedDocumentList.xml @@ -78,9 +78,9 @@ def getRelatedLatest(category):\n return map(findRecentVersion, func())\n \n what=kw.get(\'what\')\n -if what==\'wiki_predecessors\':\n +if what==\'wiki_predecessor\':\n return context.getWikiPredecessorValueList()\n -if what==\'wiki_successors\':\n +if what==\'wiki_successor\':\n return context.getWikiSuccessorValueList()\n if what.startswith(\'related\'):\n return getRelatedLatest(what[8:])\n diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMS_getRelatedDocumentsListboxTitle.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMS_getRelatedDocumentsListboxTitle.xml new file mode 100644 index 0000000000..0fac6470d2 --- /dev/null +++ b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMS_getRelatedDocumentsListboxTitle.xml @@ -0,0 +1,165 @@ +<?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>from Products.ERP5Type.Message import Message\n +\n +what=context.REQUEST.get(\'what\')\n +\n +mapka={\'wiki_predecessor\':\'Wiki Predecessors\',\n +\'wiki_successor\':\'Wiki Successors\',\n +\'related_similar\':\'Similar documents\',\n +\'related_successor\':\'Related documents\',\n +\'related_predecessor\':\'Reference documents\',\n +\'all\':\'All related documents\'}\n +\n +s=mapka.get(what)\n +if s is None:return \'\'\n +return str(Message(domain=\'ui\',message=s))\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>_params</string> </key> + <value> <string>*a,**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>a</string> + <string>kw</string> + <string>Products.ERP5Type.Message</string> + <string>Message</string> + <string>_getattr_</string> + <string>context</string> + <string>what</string> + <string>mapka</string> + <string>s</string> + <string>None</string> + <string>str</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>DMS_getRelatedDocumentsListboxTitle</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/DMS_jumpToRelatedDocuments/listbox.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMS_jumpToRelatedDocuments/listbox.xml index 60e686f6d0..4b996685bb 100644 --- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMS_jumpToRelatedDocuments/listbox.xml +++ b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/DMS_jumpToRelatedDocuments/listbox.xml @@ -296,7 +296,9 @@ </item> <item> <key> <string>title</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> </item> <item> <key> <string>url_columns</string> </key> @@ -442,7 +444,7 @@ <item> <key> <string>list_method</string> </key> <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> </value> </item> <item> @@ -528,6 +530,25 @@ </pickle> </record> <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.TALESField</string> + <string>TALESMethod</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/DMS_getRelatedDocumentsListboxTitle</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> <pickle> <tuple> <tuple> diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision index 2bab4226fc..6fc1e6e18c 100644 --- a/bt5/erp5_dms/bt/revision +++ b/bt5/erp5_dms/bt/revision @@ -1 +1 @@ -157 \ No newline at end of file +178 \ No newline at end of file -- 2.30.9