Commit 43e85c40 authored by Aurel's avatar Aurel

remove properties earlier in import of bt, thus object import from

zope2.7 xml with be set in 2.8 format



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18064 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fc0f4469
...@@ -606,6 +606,7 @@ class ObjectTemplateItem(BaseTemplateItem): ...@@ -606,6 +606,7 @@ class ObjectTemplateItem(BaseTemplateItem):
obj = connection.importFile(file_obj, customImporters=customImporters) obj = connection.importFile(file_obj, customImporters=customImporters)
else: else:
obj = connection.importFile(file_obj, customImporters=customImporters) obj = connection.importFile(file_obj, customImporters=customImporters)
self.removeProperties(obj)
self._objects[file_name[:-4]] = obj self._objects[file_name[:-4]] = obj
def preinstall(self, context, installed_bt, **kw): def preinstall(self, context, installed_bt, **kw):
...@@ -619,7 +620,6 @@ class ObjectTemplateItem(BaseTemplateItem): ...@@ -619,7 +620,6 @@ class ObjectTemplateItem(BaseTemplateItem):
# compare object to see it there is changes # compare object to see it there is changes
new_object = self._objects[path] new_object = self._objects[path]
old_object = installed_bt._objects[path] old_object = installed_bt._objects[path]
new_object = self.removeProperties(new_object)
old_object = self.removeProperties(old_object) old_object = self.removeProperties(old_object)
new_io = StringIO() new_io = StringIO()
old_io = StringIO() old_io = StringIO()
...@@ -2097,6 +2097,7 @@ class CatalogMethodTemplateItem(ObjectTemplateItem): ...@@ -2097,6 +2097,7 @@ class CatalogMethodTemplateItem(ObjectTemplateItem):
obj=obj.aq_parent obj=obj.aq_parent
connection=obj._p_jar connection=obj._p_jar
obj = connection.importFile(file, customImporters=customImporters) obj = connection.importFile(file, customImporters=customImporters)
self.removeProperties(obj)
self._objects[file_name[:-4]] = obj self._objects[file_name[:-4]] = obj
else: else:
# recreate data mapping specific to catalog method # recreate data mapping specific to catalog method
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment