[selectors] change specified_etype_implements: kwargs prevails on req.form
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 27 Jul 2009 09:51:54 +0200
changeset 2514 c745dfb2734e
parent 2513 497e5807db41
child 2515 5d3cd163e2db
child 2524 2d0c04c8cbe4
[selectors] change specified_etype_implements: kwargs prevails on req.form
selectors.py
--- a/selectors.py	Mon Jul 27 10:58:37 2009 +0200
+++ b/selectors.py	Mon Jul 27 09:51:54 2009 +0200
@@ -616,10 +616,10 @@
     @lltrace
     def __call__(self, cls, req, *args, **kwargs):
         try:
-            etype = req.form['etype']
+            etype = kwargs['etype']
         except KeyError:
             try:
-                etype = kwargs['etype']
+                etype = req.form['etype']
             except KeyError:
                 return 0
         else: