[Erp5-report] r23431 - in /erp5/trunk/bt5/erp5_crm: SkinTemplateItem/portal_skins/erp5_crm/...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 4 18:59:04 CEST 2008


Author: yusei
Date: Thu Sep  4 18:59:03 2008
New Revision: 23431

URL: http://svn.erp5.org?rev=23431&view=rev
Log:
2008-09-04 yusei
* Update English messages.
* Fix variable name.

Modified:
    erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createDocumentFromAttachment.xml
    erp5/trunk/bt5/erp5_crm/bt/revision

Modified: erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createDocumentFromAttachment.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createDocumentFromAttachment.xml?rev=23431&r1=23430&r2=23431&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createDocumentFromAttachment.xml (original)
+++ erp5/trunk/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_createDocumentFromAttachment.xml Thu Sep  4 18:59:03 2008
@@ -76,24 +76,27 @@
     attachment_index = int(uid.split(\'index_\')[-1])\n
     attachment_info = [i for i in attachment_info_list if i[\'index\'] == attachment_index][0]\n
     file = context.getAttachmentData(index=attachment_index)\n
-    doc = dms_module.newContent(follow_up=context.getFollowUp(),\n
-                                                           portal_type = line[\'content_type\'],\n
-                                                           description = line[\'description\'],\n
-                                                           version = line[\'version\'],\n
-                                                           short_title = line[\'short_title\'],\n
-                                                           language = line[\'language\'],\n
-                                                           reference= line[\'reference\'],\n
-                                                           title = line[\'title\'])\n
-    doc.edit(source_reference=attachment_info[\'file_name\'], file=file)\n
+    document = dms_module.newContent(follow_up=context.getFollowUp(),\n
+                                     portal_type = line[\'content_type\'],\n
+                                     description = line[\'description\'],\n
+                                     version = line[\'version\'],\n
+                                     short_title = line[\'short_title\'],\n
+                                     language = line[\'language\'],\n
+                                     reference= line[\'reference\'],\n
+                                     title = line[\'title\'])\n
+    document.edit(source_reference=attachment_info[\'file_name\'], file=file)\n
 \n
 if len(uids) == 1:\n
+  message = Base_translateString(\'${portal_type} created successfully.\',\n
+                                 mapping={\'portal_type\':document.getTranslatedPortalType()})\n
   return context.REQUEST.RESPONSE.redirect(\n
-    \'%s/view?portal_status_message=%s+%s.\' % (doc.absolute_url(), doc.getTranslatedPortalType(),\n
-                                              Base_translateString(\'+created+successfully.\')))\n
-\n
+    \'%s/view?portal_status_message=%s\' % (document.absolute_url(), message)\n
+    )\n
+message = Base_translateString(\'${count} documents created successfully.\',\n
+                               mapping={\'count\':len(uids)})\n
 return context.REQUEST.RESPONSE.redirect(\n
-  \'%s?portal_status_message=%s+%s.\' % (dms_module.absolute_url(),len(uids),\n
-                                       Base_translateString(\'+documents+created+successfully\')))\n
+  \'%s?portal_status_message=%s\' % (dms_module.absolute_url(), message)\n
+  )\n
 </string> </value>
         </item>
         <item>
@@ -164,8 +167,9 @@
                             <string>i</string>
                             <string>attachment_info</string>
                             <string>file</string>
-                            <string>doc</string>
+                            <string>document</string>
                             <string>len</string>
+                            <string>message</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/bt5/erp5_crm/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/revision?rev=23431&r1=23430&r2=23431&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/revision (original)
+++ erp5/trunk/bt5/erp5_crm/bt/revision Thu Sep  4 18:59:03 2008
@@ -1,1 +1,1 @@
-298
+299




More information about the Erp5-report mailing list