Commit 6956d6dc authored by Arnaud Fontaine's avatar Arnaud Fontaine

This does not make any sense to have the registry as class attribute...

parent 0a285206
......@@ -64,7 +64,6 @@ class ComponentDynamicPackage(ModuleType):
# Necessary otherwise imports will fail because an object is considered a
# package only if __path__ is defined
__path__ = []
__registry_dict = {}
def __init__(self, namespace, portal_type):
super(ComponentDynamicPackage, self).__init__(namespace)
......@@ -75,6 +74,7 @@ class ComponentDynamicPackage(ModuleType):
self.__version_suffix_len = len('_version')
self._load_module_lock = threading.RLock()
self._registry_generate_lock = threading.RLock()
self.__registry_dict = {}
# Add this module to sys.path for future imports
sys.modules[namespace] = self
......
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