web/views/basecontrollers.py
branchstable
changeset 1909 58374d1f6d9b
parent 1889 874a055c373b
child 1971 5e6799e86088
child 1977 606923dff11b
--- a/web/views/basecontrollers.py	Sun May 24 22:40:44 2009 +0200
+++ b/web/views/basecontrollers.py	Sun May 24 22:41:24 2009 +0200
@@ -119,6 +119,8 @@
             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))