web/views/basecontrollers.py
changeset 2294 e846aa2824dd
parent 2293 7ded2a1416e4
child 2381 caad2367d940
--- 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: