Commit f820ba56 authored by Arnaud Fontaine's avatar Arnaud Fontaine

The name of a new Component module should be erp5.component.XXX.YYY.

parent dcfcaed3
......@@ -72,9 +72,7 @@ def generateComponentClassWrapper(namespace):
raise
else:
if component.getValidationState() == 'validated':
new_module = ModuleType(component_name,
component.getDescription())
new_module = ModuleType(component_id, component.getDescription())
component.load(new_module.__dict__)
LOG("ERP5Type.dynamic", INFO, "Loaded successfully %s" % component_id)
return new_module
......
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