Commit 43244bb2 authored by Nicolas Dumazet's avatar Nicolas Dumazet

register object_classes as well


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42916 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f148808a
...@@ -1193,6 +1193,7 @@ def initializeProduct( context, ...@@ -1193,6 +1193,7 @@ def initializeProduct( context,
# Register Objets # Register Objets
for c in object_classes: for c in object_classes:
registerDocumentClass(c.__module__, c.__name__)
icon = getattr(c, 'icon', None) icon = getattr(c, 'icon', None)
permission = getattr(c, 'permission_type', None) permission = getattr(c, 'permission_type', None)
context.registerClass(c, context.registerClass(c,
......
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