branch | stable |
changeset 2274 | 885873dc4361 |
parent 2254 | f632b06058c4 |
child 2293 | 7ded2a1416e4 |
child 2308 | b478c3a8ad2a |
--- a/selectors.py Mon Jul 06 10:56:43 2009 +0200 +++ b/selectors.py Mon Jul 06 11:01:41 2009 +0200 @@ -622,6 +622,14 @@ etype = kwargs['etype'] except KeyError: return 0 + else: + # 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()] + req.form['etype'] = etype + except KeyError: + return 0 return self.score_class(cls.vreg.etype_class(etype), req)