From f820ba56d0c38434a11b98fbd976e7f2d71da1a8 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Wed, 25 Jan 2012 10:19:55 +0900 Subject: [PATCH] The name of a new Component module should be erp5.component.XXX.YYY. --- product/ERP5Type/dynamic/component_class.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/product/ERP5Type/dynamic/component_class.py b/product/ERP5Type/dynamic/component_class.py index 0e6a638d98..ed0420e443 100644 --- a/product/ERP5Type/dynamic/component_class.py +++ b/product/ERP5Type/dynamic/component_class.py @@ -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 -- 2.30.9