Skip to content

Commit 887b100

Browse files
author
Richard Jones
committed
merge from maint-0-8
1 parent 20604f6 commit 887b100

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

roundup/backends/rdbms_common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.157 2005-07-12 01:37:50 richard Exp $
1+
# $Id: rdbms_common.py,v 1.158 2005-07-18 02:35:18 richard Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -1669,6 +1669,7 @@ def set_inner(self, nodeid, **propvalues):
16691669
if value is not None and type(value) != type('') and type(value) != type(u''):
16701670
raise TypeError, 'new property "%s" not a string'%propname
16711671
if prop.indexme:
1672+
if value is None: value = ''
16721673
self.db.indexer.add_text((self.classname, nodeid, propname),
16731674
value)
16741675

roundup/hyperdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: hyperdb.py,v 1.110 2005-07-18 01:43:56 richard Exp $
18+
# $Id: hyperdb.py,v 1.111 2005-07-18 02:35:18 richard Exp $
1919

2020
"""Hyperdatabase implementation, especially field types.
2121
"""
@@ -55,7 +55,7 @@ def from_raw(self, value, **kw):
5555
p.scheme = m.group(1)
5656
if p.scheme not in 'SHA crypt plaintext'.split():
5757
raise HyperdbValueError, 'property %s: unknown encryption '\
58-
'scheme %r'%(propname, p.scheme)
58+
'scheme %r'%(kw['propname'], p.scheme)
5959
p.password = m.group(2)
6060
value = p
6161
else:

0 commit comments

Comments
 (0)