summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3136278)
raw | patch | inline | side by side (parent: 3136278)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 12 Sep 2002 06:02:45 +0000 (06:02 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 12 Sep 2002 06:02:45 +0000 (06:02 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1150 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi/client.py | patch | blob | history |
diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py
index 9bbe94e785e481a5b69cab153aeadf5ab0cc56ef..6a81a6966b0100ae84a291d9948cf836a0b572fe 100644 (file)
--- a/roundup/cgi/client.py
+++ b/roundup/cgi/client.py
-# $Id: client.py,v 1.28 2002-09-11 23:54:25 richard Exp $
+# $Id: client.py,v 1.29 2002-09-12 06:02:45 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
raise ValueError, _('property "%(propname)s": '
'%(value)s not a %(classname)s')%{'propname':key,
'value': value, 'classname': link}
+ except TypeError, message:
+ raise ValueError, _('you may only enter ID values '
+ 'for property "%(propname)s": %(message)s'%{
+ 'propname':key, 'message': message}
elif isinstance(proptype, hyperdb.Multilink):
if isinstance(value, type([])):
# it's a list of MiniFieldStorages
raise ValueError, _('property "%(propname)s": '
'"%(value)s" not an entry of %(classname)s')%{
'propname':key, 'value': entry, 'classname': link}
+ except TypeError, message:
+ raise ValueError, _('you may only enter ID values '
+ 'for property "%(propname)s": %(message)s'%{
+ 'propname':key, 'message': message}
l.append(entry)
l.sort()
value = l