web/views/basecontrollers.py
changeset 1827 93840d187f26
parent 1798 cc86fe8efaaa
child 1889 874a055c373b
--- a/web/views/basecontrollers.py	Thu May 14 16:28:58 2009 +0200
+++ b/web/views/basecontrollers.py	Thu May 14 16:32:20 2009 +0200
@@ -114,6 +114,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))