Commit d85bd784 authored by Guillaume Michon's avatar Guillaume Michon

Minor fix in an exception message


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2599 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c7095aa3
...@@ -200,7 +200,7 @@ class CategoryTemplateItem(ObjectTemplateItem): ...@@ -200,7 +200,7 @@ class CategoryTemplateItem(ObjectTemplateItem):
else: else:
for category_id in self._light_archive.keys(): for category_id in self._light_archive.keys():
if category_id in category_tool.objectIds(): if category_id in category_tool.objectIds():
raise TemplateConflictError, 'the category %s already exists' % id raise TemplateConflictError, 'the category %s already exists' % category_id
category = category_tool.newContent(portal_type='Base Category',id=category_id) category = category_tool.newContent(portal_type='Base Category',id=category_id)
property_list = self._light_archive[category_id]['property_list'] property_list = self._light_archive[category_id]['property_list']
for property,value in property_list.items(): for property,value in property_list.items():
......
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