Commit 31fa6ce6 authored by Aurel's avatar Aurel

remove light install in installation of categories so that uid are always preserved

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9967 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 54a199c3
......@@ -863,13 +863,10 @@ class CategoryTemplateItem(ObjectTemplateItem):
self._objects[relative_url] = obj
obj.wl_clearLocks()
def install(self, context, trashbin, light_install = 0, **kw):
def install(self, context, trashbin, **kw):
update_dict = kw.get('object_to_update')
force = kw.get('force')
if context.getTemplateFormatVersion() == 1:
if light_install == 0:
ObjectTemplateItem.install(self, context, trashbin, **kw)
else:
portal = context.getPortalObject()
category_tool = portal.portal_categories
tool_id = self.tool_id
......@@ -900,6 +897,7 @@ class CategoryTemplateItem(ObjectTemplateItem):
container_ids = container.objectIds()
# Object already exists
object_uid = None
subobjects_dict = {}
if category_id in container_ids:
object_uid = container[category_id].getUid()
subobjects_dict = self._backupObject(action, trashbin, container_path, category_id)
......
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