[Erp5-report] r42901 nicolas.dumazet - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 1 17:49:52 CET 2011
Author: nicolas.dumazet
Date: Tue Feb 1 17:49:52 2011
New Revision: 42901
URL: http://svn.erp5.org?rev=42901&view=rev
Log:
comment out dubious migration code. We'll have to rethink this approach.
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=42901&r1=42900&r2=42901&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Tue Feb 1 17:49:52 2011
@@ -3664,23 +3664,23 @@ class PropertySheetTemplateItem(Document
if not self._perform_migration:
return DocumentTemplateItem.install(self, context, **kw)
- # With format 0 of Business Template, the objects are stored in
- # '_archive' whereas they are stored in '_objects' with format
- # version 1
- bt_format_version = context.getTemplateFormatVersion()
-
- if bt_format_version == 0 and \
- not self._is_already_migrated(self._archive.keys()):
- self._migrateAllFilesystemPropertySheets(context,
- self._archive,
- self._objects,
- kw.get('object_to_update'))
- elif bt_format_version == 1 and \
- not self._is_already_migrated(self._objects.keys()):
- self._migrateAllFilesystemPropertySheets(context,
- self._objects,
- self._archive,
- kw.get('object_to_update'))
+# # With format 0 of Business Template, the objects are stored in
+# # '_archive' whereas they are stored in '_objects' with format
+# # version 1
+# bt_format_version = context.getTemplateFormatVersion()
+#
+# if bt_format_version == 0 and \
+# not self._is_already_migrated(self._archive.keys()):
+# self._migrateAllFilesystemPropertySheets(context,
+# self._archive,
+# self._objects,
+# kw.get('object_to_update'))
+# elif bt_format_version == 1 and \
+# not self._is_already_migrated(self._objects.keys()):
+# self._migrateAllFilesystemPropertySheets(context,
+# self._objects,
+# self._archive,
+# kw.get('object_to_update'))
return ObjectTemplateItem.install(self, context, **kw)
More information about the Erp5-report
mailing list