From b49d48ed15b66081e4930a1b555006efadb15e21 Mon Sep 17 00:00:00 2001 From: Nicolas Dumazet <nicolas.dumazet@nexedi.com> Date: Tue, 1 Feb 2011 16:49:52 +0000 Subject: [PATCH] comment out dubious migration code. We'll have to rethink this approach. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42901 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/BusinessTemplate.py | 34 +++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 9dfc9373a0..8de6330646 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -3664,23 +3664,23 @@ class PropertySheetTemplateItem(DocumentTemplateItem, 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) -- 2.30.9