[cwvreg] introduce lgc version 0.59 and remove unneeded method redefinition (prepares #2406609)
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 21 Jan 2013 13:55:25 +0100
changeset 8663 4e2dc5e61599
parent 8662 60a13447f389
child 8664 29652410c317
[cwvreg] introduce lgc version 0.59 and remove unneeded method redefinition (prepares #2406609) The new logilab.common.registry makes this moot.
__pkginfo__.py
cwvreg.py
--- a/__pkginfo__.py	Fri Nov 23 18:27:35 2012 +0100
+++ b/__pkginfo__.py	Mon Jan 21 13:55:25 2013 +0100
@@ -40,7 +40,7 @@
 ]
 
 __depends__ = {
-    'logilab-common': '>= 0.58.0',
+    'logilab-common': '>= 0.59.0',
     'logilab-mtconverter': '>= 0.8.0',
     'rql': '>= 0.31.2',
     'yams': '>= 0.36.0',
--- a/cwvreg.py	Fri Nov 23 18:27:35 2012 +0100
+++ b/cwvreg.py	Mon Jan 21 13:55:25 2013 +0100
@@ -544,20 +544,6 @@
     def itervalues(self):
         return (value for key, value in self.items())
 
-    def load_module(self, module):
-        """ variation from the base implementation:
-        apply related_appobject to the automatically registered objects
-        """
-        self.info('loading %s from %s', module.__name__, module.__file__)
-        if hasattr(module, 'registration_callback'):
-            module.registration_callback(self)
-            return
-        for objname, obj in vars(module).iteritems():
-            if objname.startswith('_'):
-                continue
-            self._load_ancestors_then_object(module.__name__,
-                                             related_appobject(obj))
-
     def reset(self):
         CW_EVENT_MANAGER.emit('before-registry-reset', self)
         super(CWRegistryStore, self).reset()