Fix parameter for controller selection.
authorSandrine Ribeau <sandrine.ribeau@logilab.fr>
Mon, 06 Jul 2009 20:11:21 -0700
changeset 2294 e846aa2824dd
parent 2293 7ded2a1416e4
child 2295 4bad4fb08f2e
Fix parameter for controller selection.
web/views/basecontrollers.py
--- a/web/views/basecontrollers.py	Mon Jul 06 19:55:18 2009 +0200
+++ b/web/views/basecontrollers.py	Mon Jul 06 20:11:21 2009 -0700
@@ -192,8 +192,7 @@
 def _validate_form(req, vreg):
     # XXX should use the `RemoteCallFailed` mechanism
     try:
-        ctrl = vreg.select(vreg.registry_objects('controllers', 'edit'),
-                           req=req)
+        ctrl = vreg.select('controllers', 'edit', req=req)
     except NoSelectableObject:
         return (False, {None: req._('not authorized')})
     try: