# HG changeset patch # User Aurelien Campeas # Date 1358772925 -3600 # Node ID 4e2dc5e61599b98846f5ad26dac6b93da8e14b16 # Parent 60a13447f389079ee5bcb41478add52e8781e8d6 [cwvreg] introduce lgc version 0.59 and remove unneeded method redefinition (prepares #2406609) The new logilab.common.registry makes this moot. diff -r 60a13447f389 -r 4e2dc5e61599 __pkginfo__.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', diff -r 60a13447f389 -r 4e2dc5e61599 cwvreg.py --- 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()