Commit 4bc68536 authored by Nicolas Dumazet's avatar Nicolas Dumazet

Make sure that Tools are registered correctly.

Since tool list is given explicitely to initializeProduct, we can rely
on this list directly for init. A wrong approach would be to try to
walk Tool/ for Tool classes, since not all Tools are located in this
subfolder.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40199 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1c0eb10b
......@@ -1099,6 +1099,9 @@ def initializeProduct( context,
# Tools initialization
tools = portal_tools
if len(tools) > 0:
for tool in tools:
n = tool.__name__
document_class_registry[n] = "%s.%s" % (tool.__module__, n)
try:
utils.ToolInit('%s Tool' % product_name,
tools=tools,
......
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