[Erp5-report] r23276 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: WorkflowTemplateIt...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Aug 29 10:40:25 CEST 2008
Author: yusei
Date: Fri Aug 29 10:40:15 2008
New Revision: 23276
URL: http://svn.erp5.org?rev=23276&view=rev
Log:
Replace N_ with translateString.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/preference_workflow/scripts/disableOtherPreferences.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/preference_workflow/scripts/disableOtherPreferences.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/preference_workflow/scripts/disableOtherPreferences.xml?rev=23276&r1=23275&r2=23276&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/preference_workflow/scripts/disableOtherPreferences.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/preference_workflow/scripts/disableOtherPreferences.xml Fri Aug 29 10:40:15 2008
@@ -65,12 +65,11 @@
</item>
<item>
<key> <string>_body</string> </key>
- <value> <string>from Products.ERP5Type.Message import Message\n
+ <value> <string>from Products.ERP5Type.Message import translateString\n
\n
pref = sci[\'object\']\n
portal = sci.getPortal()\n
LOG = lambda msg: pref.log("PreferenceWorkflow.disableOtherPreferences on %s"%pref, msg)\n
-N_ = lambda msg, **kw: Message(\'erp5_ui\', msg, **kw)\n
\n
# deactivate all other preferences of the same level \n
for p in portal.portal_preferences.searchFolder(spec=(\'ERP5 Preference\',)) :\n
@@ -83,8 +82,9 @@
p.portal_workflow.doActionFor(p,\n
\'disable_action\',\n
wf_id=\'preference_workflow\', \n
- comment=N_(\'Automatically disabled when enabling ${preference_title}\',\n
- mapping={\'preference_title\': pref.getTitle()}) )\n
+ comment=translateString(\n
+ \'Automatically disabled when enabling ${preference_title}\',\n
+ mapping={\'preference_title\': pref.getTitle()}))\n
except \'Unauthorized\', a :\n
LOG("not authorized to deactivate %s"%p)\n
</string> </value>
@@ -137,13 +137,12 @@
<tuple>
<string>sci</string>
<string>Products.ERP5Type.Message</string>
- <string>Message</string>
+ <string>translateString</string>
<string>_getitem_</string>
<string>pref</string>
<string>_getattr_</string>
<string>portal</string>
<string>LOG</string>
- <string>N_</string>
<string>_getiter_</string>
<string>p</string>
<string>a</string>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=23276&r1=23275&r2=23276&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Fri Aug 29 10:40:15 2008
@@ -1,1 +1,1 @@
-945
+946
More information about the Erp5-report
mailing list