we have to clear _needs_iface to avoir crash on auto-reload tls-sprint
authorsylvain.thenault@logilab.fr
Fri, 27 Mar 2009 12:23:34 +0100
branchtls-sprint
changeset 1176 0ff3d29e91c9
parent 1175 96747df28a1f
child 1177 7074698c6522
we have to clear _needs_iface to avoir crash on auto-reload
cwvreg.py
--- a/cwvreg.py	Fri Mar 27 12:23:00 2009 +0100
+++ b/cwvreg.py	Fri Mar 27 12:23:34 2009 +0100
@@ -137,7 +137,9 @@
                     self.debug('kicking vobject %s (no implemented interface '
                                'among %s)', obj, ifaces)
                     self.unregister(obj)
-            
+            # clear needs_iface so we don't try to remove some not-anymore-in
+            # objects on automatic reloading
+            self._needs_iface.clear()
     
     @cached
     def etype_class(self, etype):