Mercurial > p > roundup > code
diff roundup/backends/rdbms_common.py @ 2691:4008af78746a
Class.import_list():
fix error message about importing non-character value into indexed
String property.
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Sun, 26 Sep 2004 14:16:06 +0000 |
| parents | 9054d546fc9f |
| children | f1c9873496f0 |
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py Sun Sep 26 14:03:49 2004 +0000 +++ b/roundup/backends/rdbms_common.py Sun Sep 26 14:16:06 2004 +0000 @@ -1,4 +1,4 @@ -# $Id: rdbms_common.py,v 1.129 2004-09-26 14:03:49 a1s Exp $ +# $Id: rdbms_common.py,v 1.130 2004-09-26 14:16:06 a1s Exp $ ''' Relational database (SQL) backend common code. Basics: @@ -2400,7 +2400,9 @@ d[propname] = value if isinstance(prop, String) and prop.indexme: if type(value) != type('') and type(value) != type(u''): - raise TypeError, 'new property "%s" not a string'%key + raise TypeError, \ + 'new property "%(propname)s" not a string: %(value)r' \ + % locals() self.db.indexer.add_text((self.classname, newid, propname), value)
