[Erp5-report] r23491 - in /erp5/trunk/bt5/erp5_ods_style: SkinTemplateItem/portal_skins/erp...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Sep 8 23:18:27 CEST 2008
Author: yusei
Date: Mon Sep 8 23:18:26 2008
New Revision: 23491
URL: http://svn.erp5.org?rev=23491&view=rev
Log:
Use Products.ERP5Type.Message.translateString.
Modified:
erp5/trunk/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Folder_getContentListAsODSReportSectionList.xml
erp5/trunk/bt5/erp5_ods_style/bt/revision
Modified: erp5/trunk/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Folder_getContentListAsODSReportSectionList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Folder_getContentListAsODSReportSectionList.xml?rev=23491&r1=23490&r2=23491&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Folder_getContentListAsODSReportSectionList.xml (original)
+++ erp5/trunk/bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_core/Folder_getContentListAsODSReportSectionList.xml Mon Sep 8 23:18:26 2008
@@ -66,14 +66,14 @@
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Form.Report import ReportSection\n
-from Products.ERP5Type.Message import Message\n
+from Products.ERP5Type.Message import translateString\n
\n
form = context\n
request = context.REQUEST\n
report_section_list = []\n
portal = context.getPortalObject()\n
selection_name=request.form.get(\'selection_name\', None)\n
-translate = lambda msg: Message(\'ui\', msg)\n
+\n
\n
def getReportSectionListForObject(doc):\n
""" Get all possible report section for object. """\n
@@ -90,7 +90,7 @@
report_section_list.append(ReportSection(path = doc.getPath(),\n
form_id = form_id,\n
level = 2,\n
- title = \'%s - %s\' % (title, translate(action_title))))\n
+ title = \'%s - %s\' % (title, translateString(action_title))))\n
return report_section_list\n
\n
if selection_name is not None:\n
@@ -153,7 +153,7 @@
<string>Products.ERP5Form.Report</string>
<string>ReportSection</string>
<string>Products.ERP5Type.Message</string>
- <string>Message</string>
+ <string>translateString</string>
<string>context</string>
<string>form</string>
<string>_getattr_</string>
@@ -162,7 +162,6 @@
<string>portal</string>
<string>None</string>
<string>selection_name</string>
- <string>translate</string>
<string>getReportSectionListForObject</string>
<string>checked_uid_list</string>
<string>getObject</string>
Modified: erp5/trunk/bt5/erp5_ods_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_ods_style/bt/revision?rev=23491&r1=23490&r2=23491&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_ods_style/bt/revision (original)
+++ erp5/trunk/bt5/erp5_ods_style/bt/revision Mon Sep 8 23:18:26 2008
@@ -1,1 +1,1 @@
-151
+153
More information about the Erp5-report
mailing list