Skip to content

Commit 3b6af63

Browse files
author
Richard Jones
committed
Handle export and import of old trackers that have data attached to...
...journal "create" events
1 parent 6a67a16 commit 3b6af63

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGES.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ Feature:
2424
sent by roundup
2525
- support for receiving OpenPGP MIME messages (signed or encrypted)
2626

27-
2827
Fixed:
2928
- Handling of unset Link search in RDBMS backend
3029
- Journal import/export for metakit backend
@@ -60,6 +59,8 @@ Fixed:
6059
- remove blobfiles on destroy (sf bug 1654132)
6160
- handle postgres exceptions during session cleanup (sf bug 1703116)
6261
- update Xapian indexer to use current API
62+
- handle export and import of old trackers that have data attached to
63+
journal "create" events
6364

6465

6566
2007-02-15 1.3.3

roundup/backends/rdbms_common.py

Lines changed: 7 additions & 1 deletion
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: rdbms_common.py,v 1.192 2007-09-27 06:18:53 jpend Exp $
18+
#$Id: rdbms_common.py,v 1.193 2007-10-25 07:26:11 richard Exp $
1919
""" Relational database (SQL) backend common code.
2020
2121
Basics:
@@ -2537,6 +2537,9 @@ def export_journals(self):
25372537
value = str(value)
25382538
export_data[propname] = value
25392539
params = export_data
2540+
elif action == 'create' and params:
2541+
# old tracker with data stored in the create!
2542+
params = {}
25402543
l = [nodeid, date, user, action, params]
25412544
r.append(map(repr, l))
25422545
return r
@@ -2565,6 +2568,9 @@ def import_journals(self, entries):
25652568
pwd.unpack(value)
25662569
value = pwd
25672570
params[propname] = value
2571+
elif action == 'create' and params:
2572+
# old tracker with data stored in the create!
2573+
params = {}
25682574
r.append((nodeid, date.Date(jdate), user, action, params))
25692575

25702576
for nodeid, l in d.items():

0 commit comments

Comments
 (0)