[Erp5-report] r29327 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Sep 30 16:00:29 CEST 2009


Author: fabien
Date: Wed Sep 30 16:00:27 2009
New Revision: 29327

URL: http://svn.erp5.org?rev=29327&view=rev
Log:
forget to commit this file in r29325, sorry

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

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml?rev=29327&r1=29326&r2=29327&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml [utf8] Wed Sep 30 16:00:27 2009
@@ -55,6 +55,7 @@
             <key> <string>_body</string> </key>
             <value> <string>from Products.ERP5Type.Document import newTempBase\n
 from Products.ERP5Type.Cache import CachingMethod\n
+Base_translateString = context.Base_translateString\n
 \n
 def getModifiedObjectList(context):\n
   result = context.preinstall()\n
@@ -79,23 +80,29 @@
 for k in no_backup_list:\n
   no_backup_dict[k] = 1\n
 \n
+install_title = Base_translateString(\'Install\')\n
+upgrade_title = Base_translateString(\'Upgrade\')\n
+backup_title = Base_translateString(\'Backup And Upgrade\')\n
+remove_title = Base_translateString(\'Remove\')\n
+save_and_remove_title = Base_translateString(\'Backup And Remove\')\n
+\n
 i = 0\n
 object_list = []\n
 for object_id in keys:\n
   object_state, object_class = modified_object_list[object_id]\n
   line = newTempBase(context, \'tmp_install_%s\' %(str(i)))\n
   if object_state == \'New\':\n
-    choice_item_list=[[\'Install\', \'install\']]\n
+    choice_item_list=[[install_title, \'install\']]\n
   elif object_state == \'Modified\':\n
     if object_class in no_backup_dict:\n
-      choice_item_list=[[\'Upgrade\', \'install\']]\n
+      choice_item_list=[[upgrade_title, \'install\']]\n
     else:\n
-      choice_item_list=[[\'Backup And Upgrade\', \'backup\']]\n
+      choice_item_list=[[backup_title, \'backup\']]\n
   elif object_state == \'Removed\':\n
     if object_class in no_backup_dict:\n
-      choice_item_list=[[\'Remove\', \'remove\']]\n
+      choice_item_list=[[remove_title, \'remove\']]\n
     else:\n
-      choice_item_list=[[\'Backup And Remove\', \'save_and_remove\']]\n
+      choice_item_list=[[save_and_remove_title, \'save_and_remove\']]\n
 \n
   line.edit(object_id=object_id,\n
                 object_state=object_state,\n
@@ -148,16 +155,22 @@
                             <string>newTempBase</string>
                             <string>Products.ERP5Type.Cache</string>
                             <string>CachingMethod</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>Base_translateString</string>
                             <string>getModifiedObjectList</string>
-                            <string>context</string>
                             <string>modified_object_list</string>
-                            <string>_getattr_</string>
                             <string>keys</string>
                             <string>no_backup_list</string>
                             <string>no_backup_dict</string>
                             <string>_getiter_</string>
                             <string>k</string>
                             <string>_write_</string>
+                            <string>install_title</string>
+                            <string>upgrade_title</string>
+                            <string>backup_title</string>
+                            <string>remove_title</string>
+                            <string>save_and_remove_title</string>
                             <string>i</string>
                             <string>object_list</string>
                             <string>object_id</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=29327&r1=29326&r2=29327&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Wed Sep 30 16:00:27 2009
@@ -1,1 +1,1 @@
-1316
+1317




More information about the Erp5-report mailing list