web/views/basecontrollers.py
changeset 6384 89d5b339ebdd
parent 6366 1806148d6ce8
child 6543 66145280a7e6
--- a/web/views/basecontrollers.py	Fri Oct 01 16:53:35 2010 +0200
+++ b/web/views/basecontrollers.py	Fri Oct 01 17:27:54 2010 +0200
@@ -130,16 +130,6 @@
                 rset = self.process_rql()
             else:
                 rset = None
-        if rset and rset.rowcount == 1 and '__method' in req.form:
-            entity = rset.get_entity(0, 0)
-            try:
-                method = getattr(entity, req.form.pop('__method'))
-                method()
-            except Redirect: # propagate redirect that might occur in method()
-                raise
-            except Exception, ex:
-                self.exception('while handling __method')
-                req.set_message(req._("error while handling __method: %s") % req._(ex))
         vid = req.form.get('vid') or vid_from_rset(req, rset, self._cw.vreg.schema)
         try:
             view = self._cw.vreg['views'].select(vid, req, rset=rset)