From: richard Date: Wed, 4 Sep 2002 07:12:19 +0000 (+0000) Subject: better error message X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a69bcb2e2ca0da45692c0795d74c0feb166839bd;p=roundup.git better error message git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1064 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/backends/back_anydbm.py b/roundup/backends/back_anydbm.py index cfb2681..4cdc41d 100644 --- a/roundup/backends/back_anydbm.py +++ b/roundup/backends/back_anydbm.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: back_anydbm.py,v 1.70 2002-09-04 04:29:36 richard Exp $ +#$Id: back_anydbm.py,v 1.71 2002-09-04 07:12:19 richard Exp $ ''' This module defines a backend that saves the hyperdatabase in a database chosen by anydbm. It is guaranteed to always be available in python @@ -803,8 +803,8 @@ class Class(hyperdb.Class): l = [] for entry in value: if type(entry) != type(''): - raise ValueError, '"%s" link value (%s) must be '\ - 'String'%(key, value) + raise ValueError, '"%s" multilink value (%r) ' + 'must contain Strings'%(key, value) # if it isn't a number, it's a key if not num_re.match(entry): try: @@ -1909,6 +1909,9 @@ class IssueClass(Class, roundupdb.IssueClass): # #$Log: not supported by cvs2svn $ +#Revision 1.70 2002/09/04 04:29:36 richard +#bugfix +# #Revision 1.69 2002/09/03 07:33:01 richard #allow overiding of the index args roundup/cgi/templating.py # diff --git a/roundup/backends/back_gadfly.py b/roundup/backends/back_gadfly.py index 0ed6e03..c5d5133 100644 --- a/roundup/backends/back_gadfly.py +++ b/roundup/backends/back_gadfly.py @@ -1,4 +1,4 @@ -# $Id: back_gadfly.py,v 1.12 2002-09-04 04:30:18 richard Exp $ +# $Id: back_gadfly.py,v 1.13 2002-09-04 07:12:19 richard Exp $ __doc__ = ''' About Gadfly ============ @@ -923,8 +923,8 @@ class Class(hyperdb.Class): l = [] for entry in value: if type(entry) != type(''): - raise ValueError, '"%s" link value (%s) must be '\ - 'String'%(key, value) + raise ValueError, '"%s" multilink value (%r) ' + 'must contain Strings'%(key, value) # if it isn't a number, it's a key if not num_re.match(entry): try: @@ -1758,6 +1758,9 @@ class IssueClass(Class, roundupdb.IssueClass): # # $Log: not supported by cvs2svn $ +# Revision 1.12 2002/09/04 04:30:18 richard +# bugfix +# # Revision 1.11 2002/09/03 22:11:50 richard # *** empty log message *** #