Commit 46583980 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Just ignore site properties if they exist already.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3462 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 02f8d76a
...@@ -655,8 +655,9 @@ class SitePropertyTemplateItem(BaseTemplateItem): ...@@ -655,8 +655,9 @@ class SitePropertyTemplateItem(BaseTemplateItem):
p = context.getPortalObject() p = context.getPortalObject()
for id,property in self._archive.items(): for id,property in self._archive.items():
if p.hasProperty(id): if p.hasProperty(id):
continue
# Too much??? # Too much???
raise TemplateConflictError, 'the property %s already exists' % id #raise TemplateConflictError, 'the property %s already exists' % id
p._setProperty(id, property['value'], type=property['type']) p._setProperty(id, property['value'], type=property['type'])
def uninstall(self, context, **kw): def uninstall(self, context, **kw):
......
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