don't kick objects accepting 'Any' tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 26 Mar 2009 18:58:14 +0100
branchtls-sprint
changeset 1146 547681592765
parent 1145 4162e5bb5367
child 1147 402e8a8b1d6a
don't kick objects accepting 'Any'
cwvreg.py
--- a/cwvreg.py	Thu Mar 26 18:57:58 2009 +0100
+++ b/cwvreg.py	Thu Mar 26 18:58:14 2009 +0100
@@ -133,8 +133,9 @@
                                    and self.etype_class(iface)
                                    or iface
                                    for iface in ifaces)
-                if not ifaces & interfaces:
-                    self.debug('kicking vobject %s (unsupported interface)', obj)
+                if not ('Any' in ifaces or ifaces & implemented_interfaces):
+                    self.debug('kicking vobject %s (no implemented interface '
+                               'among %s)', obj, ifaces)
                     self.unregister(obj)