[Erp5-report] r33326 daniele - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 3 13:30:07 CET 2010


Author: daniele
Date: Wed Mar  3 13:30:03 2010
New Revision: 33326

URL: http://svn.erp5.org?rev=33326&view=rev
Log:
the uninstall use the new version some business template to update the properties
of catalog

Modified:
    erp5/trunk/products/ERP5/Document/BusinessTemplate.py

Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=33326&r1=33325&r2=33326&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Wed Mar  3 13:30:03 2010
@@ -2369,7 +2369,10 @@
         values = self._archive.values()
     else:
       try:
-        value = self._archive[object_path]
+        if context.getTemplateFormatVersion() == 1:
+          value = self._objects[object_path]
+        else:
+          value = self._archive[object_path]
       except KeyError:
         value = None
       if value is not None:




More information about the Erp5-report mailing list