# HG changeset patch # User Sylvain Thénault # Date 1246632613 -7200 # Node ID f632b06058c46cbfe1519a5614f8442cd669cab3 # Parent 0727550c64e2e8d8955934f3d3be8d59f10c8f76 fix match_form_params according to docstring diff -r 0727550c64e2 -r f632b06058c4 selectors.py --- a/selectors.py Fri Jul 03 10:27:13 2009 +0200 +++ b/selectors.py Fri Jul 03 16:50:13 2009 +0200 @@ -482,8 +482,7 @@ def __call__(self, cls, req, *args, **kwargs): score = 0 for param in self.expected: - val = req.form.get(param) - if not val: + if not param in req.form: return 0 score += 1 return len(self.expected)