Commit 256ff5f6 authored by Nicolas Delaby's avatar Nicolas Delaby

Be consitent between _importFile and build method.

in order to enable reinstallation of business template with diffs.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33765 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent edf3ba11
......@@ -2077,7 +2077,11 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
for portal_type in portal_type_list:
id = portal_type.get('id')
item_type_list = [item.text for item in portal_type.findall('item')]
self._objects['%s/%s' % (self.class_property, id,)] = item_type_list
if self.class_property not in id
key = '%s/%s' % (self.class_property, id,)
else:
key = id
self._objects[key] = item_type_list
def install(self, context, trashbin, **kw):
portal = context.getPortalObject()
......
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