[vreg] skip final entities
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 11 Aug 2009 17:26:51 +0200
changeset 2777 8f7fcbe11879
parent 2774 a9a2dca5db20
child 2778 3f6dfc312760
[vreg] skip final entities
cwvreg.py
--- a/cwvreg.py	Tue Aug 11 17:15:54 2009 +0200
+++ b/cwvreg.py	Tue Aug 11 17:26:51 2009 +0200
@@ -351,6 +351,8 @@
             implemented_interfaces = set()
             if 'Any' in self.get('etypes', ()):
                 for etype in self.schema.entities():
+                    if etype.is_final():
+                        continue
                     cls = self['etypes'].etype_class(etype)
                     for iface in cls.__implements__:
                         implemented_interfaces.update(iface.__mro__)