From b04f9bea07451f3f09eb2d35716348c478f7be1a Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Mon, 8 Sep 2008 21:14:50 +0000 Subject: [PATCH] Use variable name Base_translateString instead of translate. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23490 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_core/Base_getPossibleWorkflowActionItemList.xml | 7 ++++--- product/ERP5/bootstrap/erp5_core/bt/revision | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getPossibleWorkflowActionItemList.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getPossibleWorkflowActionItemList.xml index 4b53f1d1c6..436a545eb4 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getPossibleWorkflowActionItemList.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getPossibleWorkflowActionItemList.xml @@ -65,14 +65,15 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>translate = context.Base_translateString\n + <value> <string>Base_translateString = context.Base_translateString\n item_list = [(\'\', \'\')]\n for action in context.portal_actions.listFilteredActionsFor(brain).get(\'workflow\', []):\n transition = action.get(\'transition\', None)\n if transition is not None:\n workflow_id = action[\'transition\'].aq_parent.aq_parent.getId()\n if workflow_id == brain.workflow_id:\n - item_list.append((translate(action[\'title\']), \'%s/%s\' % (workflow_id, action[\'id\'])))\n + item_list.append((Base_translateString(action[\'title\']),\n + \'%s/%s\' % (workflow_id, action[\'id\'])))\n \n return item_list\n </string> </value> @@ -135,7 +136,7 @@ return item_list\n <string>kw</string> <string>_getattr_</string> <string>context</string> - <string>translate</string> + <string>Base_translateString</string> <string>item_list</string> <string>_getiter_</string> <string>action</string> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 0c8ddea6ab..1307450554 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -955 \ No newline at end of file +956 \ No newline at end of file -- 2.30.9