Commit de424156 authored by Julien Muchembled's avatar Julien Muchembled

Fail with more info when 2 imported document/tool classes have same name

parent 1af3e662
......@@ -965,7 +965,8 @@ def registerDocumentClass(module_name, class_name):
if old_value:
if class_name == 'CategoryTool':
assert module_name == 'Products.CMFCategory.CategoryTool'
assert module_name == 'Products.CMFCategory.CategoryTool', (
old_value, new_value)
LOG('Utils', WARNING,
'Ignoring replacement of %s by %s' % (old_value, new_value))
return
......
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