From: richard Date: Fri, 26 Mar 2004 00:46:33 +0000 (+0000) Subject: handle Reject in the web interface too X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8e126d7b3ff25dca6d2385662717a0f165dc43c0;p=roundup.git handle Reject in the web interface too git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2198 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/cgi/actions.py b/roundup/cgi/actions.py index 42bd7ec..529bfac 100755 --- a/roundup/cgi/actions.py +++ b/roundup/cgi/actions.py @@ -1,8 +1,8 @@ -#$Id: actions.py,v 1.15 2004-03-26 00:44:11 richard Exp $ +#$Id: actions.py,v 1.16 2004-03-26 00:46:33 richard Exp $ import re, cgi, StringIO, urllib, Cookie, time, random -from roundup import hyperdb, token, date, password, rcsv +from roundup import hyperdb, token, date, password, rcsv, exceptions from roundup.i18n import _ from roundup.cgi import templating from roundup.cgi.exceptions import Redirect, Unauthorised, SeriousError @@ -471,7 +471,7 @@ class EditItemAction(_EditAction): # handle the props try: message = self._editnodes(props, links) - except (ValueError, KeyError, IndexError), message: + except (ValueError, KeyError, IndexError, exceptions.Reject), message: self.client.error_message.append(_('Apply Error: ') + str(message)) return @@ -511,7 +511,7 @@ class NewItemAction(_EditAction): # when it hits the None element, it'll set self.nodeid messages = self._editnodes(props, links) - except (ValueError, KeyError, IndexError), message: + except (ValueError, KeyError, IndexError, exceptions.Reject), message: # these errors might just be indicative of user dumbness self.client.error_message.append(_('Error: ') + str(message)) return