Skip to content

Commit 8dfdcb4

Browse files
author
Brian Kelley
committed
Importing journals was broken.
Needed to add hyperdb. before the Date, Interval ... for the function import_journal. I suppose we need a regression test for this.
1 parent b9578e1 commit 8dfdcb4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

roundup/backends/back_metakit.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: back_metakit.py,v 1.73 2004-06-08 05:30:32 richard Exp $
1+
# $Id: back_metakit.py,v 1.74 2004-06-11 15:50:24 wc2so1 Exp $
22
'''Metakit backend for Roundup, originally by Gordon McMillan.
33
44
Known Current Bugs:
@@ -1717,11 +1717,11 @@ def import_journals(self, entries):
17171717
prop = properties[propname]
17181718
if value is None:
17191719
pass
1720-
elif isinstance(prop, Date):
1720+
elif isinstance(prop, hyperdb.Date):
17211721
value = date.Date(value)
1722-
elif isinstance(prop, Interval):
1722+
elif isinstance(prop, hyperdb.Interval):
17231723
value = date.Interval(value)
1724-
elif isinstance(prop, Password):
1724+
elif isinstance(prop, hyperdb.Password):
17251725
pwd = password.Password()
17261726
pwd.unpack(value)
17271727
value = pwd

0 commit comments

Comments
 (0)