File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2727- refactored hyperdb.rawToHyperdb, allowing a number of improvements
2828 (thanks Ralf Schlatterbeck)
2929- don't try to set a timeout for IMAPS (thanks Paul Jimenez)
30+ - present Reject exception messages to web users (sf bug 1237685)
3031
3132
32332005-05-02 0.8.3
Original file line number Diff line number Diff line change 1- # $Id: client.py,v 1.211.2.2 2005-06-24 05:28:24 richard Exp $
1+ # $Id: client.py,v 1.211.2.3 2005-07-18 01:33:49 richard Exp $
22
33"""WWW request handler (also used in the stand-alone server).
44"""
@@ -736,6 +736,9 @@ def handle_action(self):
736736
737737 Actions may return a page (by default HTML) to return to the
738738 user, bypassing the usual template rendering.
739+
740+ We explicitly catch Reject and ValueError exceptions and
741+ present their messages to the user.
739742 '''
740743 if self .form .has_key (':action' ):
741744 action = self .form [':action' ].value .lower ()
@@ -754,7 +757,7 @@ def handle_action(self):
754757 else :
755758 return action_klass (self ).execute ()
756759
757- except ValueError , err :
760+ except ( ValueError , Reject ) , err :
758761 self .error_message .append (str (err ))
759762
760763 def get_action_class (self , action_name ):
You can’t perform that action at this time.
0 commit comments