[Erp5-report] r42689 jerome - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplat...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jan 26 15:29:31 CET 2011


Author: jerome
Date: Wed Jan 26 15:29:31 2011
New Revision: 42689

URL: http://svn.erp5.org?rev=42689&view=rev
Log:
Use different message when a template is updated

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_makeTemplateFromDocument.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_makeTemplateFromDocument.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_makeTemplateFromDocument.xml?rev=42689&r1=42688&r2=42689&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_makeTemplateFromDocument.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_makeTemplateFromDocument.xml [utf8] Wed Jan 26 15:29:31 2011
@@ -62,6 +62,7 @@ if preference is None\\\n
   p.enable()\n
   preference = p\n
 \n
+message = context.Base_translateString("Templated created.")\n
 \n
 # if the preference already contains a template with the same name, making\n
 # another template will replace it\n
@@ -70,6 +71,7 @@ for existing_template in preference.cont
     portal_type=context.getPortalType()):\n
   if existing_template.getTitle() == document_title:\n
     preference.manage_delObjects(ids=[existing_template.getId()])\n
+    message = context.Base_translateString("Templated updated.")\n
     break\n
 \n
 parent = context.getParentValue()\n
@@ -83,7 +85,7 @@ template.makeTemplate()\n
 context.portal_caches.clearCacheFactory(\'erp5_ui_medium\')\n
 \n
 return context.Base_redirect(form_id,\n
-                             keep_items=dict(portal_status_message=context.Base_translateString("Templated made.")),\n
+                             keep_items=dict(portal_status_message=message),\n
                              **kw)\n
 </string> </value>
         </item>

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=42689&r1=42688&r2=42689&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Wed Jan 26 15:29:31 2011
@@ -1 +1 @@
-40855
\ No newline at end of file
+40856
\ No newline at end of file



More information about the Erp5-report mailing list