Skip to content

Commit b05ca66

Browse files
author
Richard Jones
committed
bugfixes, thanks alex
1 parent d8fc97f commit b05ca66

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.107.2.2 2005-07-12 01:43:17 richard Exp $
18+
# $Id: hyperdb.py,v 1.107.2.3 2005-07-18 01:43:06 richard Exp $
1919

2020
"""Hyperdatabase implementation, especially field types.
2121
"""
@@ -47,7 +47,7 @@ def __repr__(self):
4747
' more useful for dumps '
4848
return '<%s>'%self.__class__
4949
def from_raw(self, value, **kw):
50-
m = password.Passowrd.pwre.match(value)
50+
m = password.Password.pwre.match(value)
5151
if m:
5252
# password is being given to us encrypted
5353
p = password.Password()
@@ -80,7 +80,7 @@ def from_raw(self, value, db, **kw):
8080
value = date.Date(value).local(-self.offset(db))
8181
except ValueError, message:
8282
raise HyperdbValueError, 'property %s: %r is an invalid '\
83-
'date (%s)'%(propname, value, message)
83+
'date (%s)'%(kw['propname'], value, message)
8484
return value
8585
def range_from_raw (self, value, db):
8686
"""return Range value from given raw value with offset correction"""
@@ -96,7 +96,7 @@ def from_raw(self, value, **kw):
9696
value = date.Interval(value)
9797
except ValueError, message:
9898
raise HyperdbValueError, 'property %s: %r is an invalid '\
99-
'date interval (%s)'%(propname, value, message)
99+
'date interval (%s)'%(kw['propname'], value, message)
100100
return value
101101

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

171171
# look up the value
172-
itemid = convertLinkValue(db, propname, proptype, item)
172+
itemid = convertLinkValue(db, propname, self, item)
173173

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

0 commit comments

Comments
 (0)