[selectors] cls.vreg is not usable anymore, use req.vreg instead
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 23 Sep 2009 09:52:09 +0200
changeset 3393 58a62864bae4
parent 3392 36bcf206e157
child 3394 51a25bdd7bdc
[selectors] cls.vreg is not usable anymore, use req.vreg instead
selectors.py
--- a/selectors.py	Wed Sep 23 09:51:42 2009 +0200
+++ b/selectors.py	Wed Sep 23 09:52:09 2009 +0200
@@ -614,11 +614,11 @@
                 # only check this is a known type if etype comes from req.form,
                 # else we want the error to propagate
                 try:
-                    etype = cls.vreg.case_insensitive_etypes[etype.lower()]
+                    etype = req.vreg.case_insensitive_etypes[etype.lower()]
                     req.form['etype'] = etype
                 except KeyError:
                     return 0
-        return self.score_class(cls.vreg['etypes'].etype_class(etype), req)
+        return self.score_class(req.vreg['etypes'].etype_class(etype), req)
 
 
 class entity_implements(ImplementsMixIn, EntitySelector):