[vreg appobject] use class_regid
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 14 Aug 2009 09:20:33 +0200
changeset 2834 7df3494ae657
parent 2833 9aa47a3c0dfe
child 2835 04034421b072
[vreg appobject] use class_regid
selectors.py
--- a/selectors.py	Fri Aug 14 09:17:54 2009 +0200
+++ b/selectors.py	Fri Aug 14 09:20:33 2009 +0200
@@ -54,6 +54,7 @@
                       role, typed_eid)
 # even if not used, let yes here so it's importable through this module
 from cubicweb.appobject import Selector, objectify_selector, yes
+from cubicweb.vregistry import class_regid
 from cubicweb.cwconfig import CubicWebConfiguration
 from cubicweb.schema import split_expression
 
@@ -74,7 +75,7 @@
         else:
             selname = selector.__name__
             vobj = cls
-        oid = vobj.id
+        oid = class_regid(vobj)
         ret = selector(cls, *args, **kwargs)
         if TRACED_OIDS == 'all' or oid in TRACED_OIDS:
             #SELECTOR_LOGGER.warning('selector %s returned %s for %s', selname, ret, cls)