Skip to content

Commit bb8af5f

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent d8273a7 commit bb8af5f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Fixed:
66
- re-acquire the OTK manager when we re-open the database
77
- mailgw handler can close the database on us
88
- fixed grouping by a NULL Link value
9+
- fixed anydbm import/export (sf bugs 965216, 964457, 964450)
910

1011

1112
2004-05-28 0.7.3

roundup/backends/back_anydbm.py

Lines changed: 4 additions & 3 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: back_anydbm.py,v 1.146.2.3 2004-05-23 23:26:29 richard Exp $
18+
#$Id: back_anydbm.py,v 1.146.2.4 2004-06-08 05:34:21 richard Exp $
1919
'''This module defines a backend that saves the hyperdatabase in a
2020
database chosen by anydbm. It is guaranteed to always be available in python
2121
versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several
@@ -2009,6 +2009,7 @@ def export_journals(self):
20092009
r = []
20102010
for nodeid in self.getnodeids():
20112011
for nodeid, date, user, action, params in self.history(nodeid):
2012+
print (nodeid, date, user, action, params)
20122013
date = date.get_tuple()
20132014
if action == 'set':
20142015
for propname, value in params.items():
@@ -2035,7 +2036,7 @@ def import_journals(self, entries):
20352036
d = {}
20362037
for l in entries:
20372038
l = map(eval, l)
2038-
nodeid, date, user, action, params = l
2039+
nodeid, jdate, user, action, params = l
20392040
r = d.setdefault(nodeid, [])
20402041
if action == 'set':
20412042
for propname, value in params.items():
@@ -2051,7 +2052,7 @@ def import_journals(self, entries):
20512052
pwd.unpack(value)
20522053
value = pwd
20532054
params[propname] = value
2054-
r.append((nodeid, date.Date(date), user, action, params))
2055+
r.append((nodeid, date.Date(jdate), user, action, params))
20552056

20562057
for nodeid, l in d.items():
20572058
self.db.setjournal(self.classname, nodeid, l)

0 commit comments

Comments
 (0)