# HG changeset patch # User Adrien Di Mascio # Date 1253692329 -7200 # Node ID 58a62864bae4cb67b06e07de4409557e3563427b # Parent 36bcf206e157bceb1034f077e2dc6ac540128c71 [selectors] cls.vreg is not usable anymore, use req.vreg instead diff -r 36bcf206e157 -r 58a62864bae4 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):