Skip to content

Commit d3582d0

Browse files
author
Alexander Smishlajev
committed
Class.import_list():
fix error message about importing non-character value into indexed String property.
1 parent 6874422 commit d3582d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

roundup/backends/rdbms_common.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.129 2004-09-26 14:03:49 a1s Exp $
1+
# $Id: rdbms_common.py,v 1.130 2004-09-26 14:16:06 a1s Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -2400,7 +2400,9 @@ def import_list(self, propnames, proplist):
24002400
d[propname] = value
24012401
if isinstance(prop, String) and prop.indexme:
24022402
if type(value) != type('') and type(value) != type(u''):
2403-
raise TypeError, 'new property "%s" not a string'%key
2403+
raise TypeError, \
2404+
'new property "%(propname)s" not a string: %(value)r' \
2405+
% locals()
24042406
self.db.indexer.add_text((self.classname, newid, propname),
24052407
value)
24062408

0 commit comments

Comments
 (0)