merge stable
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Fri, 03 Jul 2009 16:55:16 +0200
branchstable
changeset 2261 7e635be2c4b2
parent 2260 080167dad19e (current diff)
parent 2254 f632b06058c4 (diff)
child 2262 d0cec91ff4c5
merge
--- a/selectors.py	Fri Jul 03 16:51:01 2009 +0200
+++ b/selectors.py	Fri Jul 03 16:55:16 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)