ZODB Components: Migrate Products.ERP5.Document.Document.
... | @@ -66,7 +66,6 @@ from Products.ERP5Type.dynamic.lazy_class import ERP5BaseBroken | ... | @@ -66,7 +66,6 @@ from Products.ERP5Type.dynamic.lazy_class import ERP5BaseBroken |
from Products.ERP5Type.dynamic.portal_type_class import synchronizeDynamicModules | from Products.ERP5Type.dynamic.portal_type_class import synchronizeDynamicModules | ||
from Products.ERP5Type.Core.PropertySheet import PropertySheet as PropertySheetDocument | from Products.ERP5Type.Core.PropertySheet import PropertySheet as PropertySheetDocument | ||
from Products.ERP5Type.TransactionalVariable import getTransactionalVariable | from Products.ERP5Type.TransactionalVariable import getTransactionalVariable | ||
from Products.ERP5.Document.File import File | |||
from OFS.Traversable import NotFound | from OFS.Traversable import NotFound | ||
from OFS import SimpleItem, XMLExportImport | from OFS import SimpleItem, XMLExportImport | ||
from OFS.Image import Pdata | from OFS.Image import Pdata | ||
... | @@ -1520,7 +1519,7 @@ class ObjectTemplateItem(BaseTemplateItem): | ... | @@ -1520,7 +1519,7 @@ class ObjectTemplateItem(BaseTemplateItem): |
container.getParentValue().updateCache() | container.getParentValue().updateCache() | ||
elif obj.__class__.__name__ in ('File', 'Image'): | elif obj.__class__.__name__ in ('File', 'Image'): | ||
if "data" in obj.__dict__: | if "data" in obj.__dict__: | ||
File._setData.__func__(obj, obj.data) | obj._setData(obj.data) | ||
|
|||
elif (container.meta_type == 'CMF Skins Tool') and \ | elif (container.meta_type == 'CMF Skins Tool') and \ | ||
(old_obj is not None): | (old_obj is not None): | ||
# Keep compatibility with previous export format of | # Keep compatibility with previous export format of | ||
... | @@ -6548,7 +6547,6 @@ Business Template is a set of definitions, such as skins, portal types and categ | ... | @@ -6548,7 +6547,6 @@ Business Template is a set of definitions, such as skins, portal types and categ |
# Business Template | # Business Template | ||
'Products.ERP5.Document.TrashBin', | 'Products.ERP5.Document.TrashBin', | ||
'Products.ERP5.Tool.TrashTool', | 'Products.ERP5.Tool.TrashTool', | ||
'Products.ERP5.Document.File', | |||
'Products.ERP5.Document.PythonScript', | 'Products.ERP5.Document.PythonScript', | ||
'Products.ERP5.Document.BusinessTemplate', | 'Products.ERP5.Document.BusinessTemplate', | ||
'Products.ERP5.Tool.TemplateTool', | 'Products.ERP5.Tool.TemplateTool', | ||
... | ... |
-
mentioned in merge request !1215 (closed)