Skip to content

Commit b4d8d06

Browse files
author
Richard Jones
committed
merge from maint-0-8
1 parent 19d623b commit b4d8d06

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

roundup/hyperdb.py

Lines changed: 6 additions & 6 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.109 2005-07-12 01:37:49 richard Exp $
18+
# $Id: hyperdb.py,v 1.110 2005-07-18 01:43:56 richard Exp $
1919

2020
"""Hyperdatabase implementation, especially field types.
2121
"""
@@ -48,7 +48,7 @@ def __repr__(self):
4848
' more useful for dumps '
4949
return '<%s>'%self.__class__
5050
def from_raw(self, value, **kw):
51-
m = password.Passowrd.pwre.match(value)
51+
m = password.Password.pwre.match(value)
5252
if m:
5353
# password is being given to us encrypted
5454
p = password.Password()
@@ -81,7 +81,7 @@ def from_raw(self, value, db, **kw):
8181
value = date.Date(value).local(-self.offset(db))
8282
except ValueError, message:
8383
raise HyperdbValueError, 'property %s: %r is an invalid '\
84-
'date (%s)'%(propname, value, message)
84+
'date (%s)'%(kw['propname'], value, message)
8585
return value
8686
def range_from_raw (self, value, db):
8787
"""return Range value from given raw value with offset correction"""
@@ -97,7 +97,7 @@ def from_raw(self, value, **kw):
9797
value = date.Interval(value)
9898
except ValueError, message:
9999
raise HyperdbValueError, 'property %s: %r is an invalid '\
100-
'date interval (%s)'%(propname, value, message)
100+
'date interval (%s)'%(kw['propname'], value, message)
101101
return value
102102

103103
class Link:
@@ -170,7 +170,7 @@ def from_raw(self, value, db, klass, propname, itemid, **kw):
170170
set = 0
171171

172172
# look up the value
173-
itemid = convertLinkValue(db, propname, proptype, item)
173+
itemid = convertLinkValue(db, propname, self, item)
174174

175175
# perform the add/remove
176176
if remove:
@@ -220,7 +220,7 @@ def from_raw(self, value, **kw):
220220
value = float(value)
221221
except ValueError:
222222
raise HyperdbValueError, 'property %s: %r is not a number'%(
223-
propname, value)
223+
kw['propname'], value)
224224
return value
225225
#
226226
# Support for splitting designators

0 commit comments

Comments
 (0)