From f18a24d31f171dd8ff81d7f931c312227f299036 Mon Sep 17 00:00:00 2001
From: Arnaud Fontaine <arnaud.fontaine@nexedi.com>
Date: Fri, 9 Mar 2012 18:21:19 +0900
Subject: [PATCH] When loading a Component and a specific version has already
 been loaded, add it to the top-level package.

---
 product/ERP5Type/dynamic/component_package.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/dynamic/component_package.py b/product/ERP5Type/dynamic/component_package.py
index b2a99c9961..5fdc394d27 100644
--- a/product/ERP5Type/dynamic/component_package.py
+++ b/product/ERP5Type/dynamic/component_package.py
@@ -232,7 +232,7 @@ class ComponentDynamicPackage(ModuleType):
       except AttributeError:
         pass
       else:
-        setattr(self._getVersionPackage(version), name, module)
+        setattr(self, name, module)
         return module
 
       module_fullname_alias = self._namespace + '.' + name
-- 
2.30.9