branch | tls-sprint |
changeset 717 | 54b873918b48 |
parent 666 | 8ad9885ea45a |
child 776 | 29ba95ea7e7d |
--- a/cwvreg.py Tue Feb 17 23:08:21 2009 +0100 +++ b/cwvreg.py Tue Feb 17 23:09:31 2009 +0100 @@ -87,6 +87,8 @@ self.register(obj, **kwargs) def register(self, obj, **kwargs): + if kwargs.get('registryname', obj.__registry__) == 'etypes': + kwargs['clear'] = True super(CubicWebRegistry, self).register(obj, **kwargs) # XXX bw compat ifaces = getattr(obj, 'accepts_interfaces', None)