[vreg] consider __abstract__ in register_all stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 31 Jul 2009 12:04:32 +0200
branchstable
changeset 2587 79bbc5045288
parent 2571 5c837feca73a
child 2588 3a590ff82e99
[vreg] consider __abstract__ in register_all
vregistry.py
--- a/vregistry.py	Thu Jul 30 12:30:12 2009 +0200
+++ b/vregistry.py	Fri Jul 31 12:04:32 2009 +0200
@@ -196,7 +196,7 @@
                 oid = obj.id
             except AttributeError:
                 continue
-            if oid:
+            if oid and not '__abstract__' in obj.__dict__:
                 self.register(obj)
 
     def register(self, obj, registryname=None, oid=None, clear=False):