Commit 1a987979 authored by Arnaud Fontaine's avatar Arnaud Fontaine

When migrating a Constraint, do not fail if no matching filesystem

Constraint has been found for a given Portal Type (displaying a
warning is enough in such case) and also fix a typo when displaying
the message


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42942 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 816609b5
......@@ -136,10 +136,11 @@ class PropertySheetTool(BaseTool):
constraint_class_name = constraint_class_name.replace('Constraint', '')
if constraint_class_name not in filesystem_constraint_class_name_list:
raise ValueError, "PropertySheet %s: Constraint %s: No Portal " \
"Type defined for type '%s'" % (new_property_sheet_name,
constraint['id'],
constraint['type'])
LOG("Tool.PropertySheetTool", WARNING,
"PropertySheet %s: No matching Constraint found for Portal '%s'" % \
(new_property_sheet_name, portal_type_id))
continue
portal_type_dict[constraint_class_name] = portal_type_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