Skip to content

Commit 8b4b959

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 58571ff commit 8b4b959

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Fixed:
1717
- fixed templating menu() sort_on handling (sf bug 1221936)
1818
- allow specification of pagesize, sorting and filtering in "classhelp"
1919
popups (sf bug 1211800)
20+
- handle dropped properies in rdbms/metakit journal export (sf bug 1203569)
2021

2122

2223
2005-05-02 0.8.3

roundup/backends/back_metakit.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: back_metakit.py,v 1.88.2.4 2005-03-03 22:12:35 richard Exp $
1+
# $Id: back_metakit.py,v 1.88.2.5 2005-06-24 06:40:18 richard Exp $
22
'''Metakit backend for Roundup, originally by Gordon McMillan.
33
44
Known Current Bugs:
@@ -1704,7 +1704,12 @@ def export_journals(self):
17041704
for nodeid, date, user, action, params in self.history(nodeid):
17051705
date = date.get_tuple()
17061706
if action == 'set':
1707+
export_data = {}
17071708
for propname, value in params.items():
1709+
if not properties.has_key(propname):
1710+
# property no longer in the schema
1711+
continue
1712+
17081713
prop = properties[propname]
17091714
# make sure the params are eval()'able
17101715
if value is None:
@@ -1715,7 +1720,8 @@ def export_journals(self):
17151720
value = value.get_tuple()
17161721
elif isinstance(prop, Password):
17171722
value = str(value)
1718-
params[propname] = value
1723+
export_data[propname] = value
1724+
params = export_data
17191725
l = [nodeid, date, user, action, params]
17201726
r.append(map(repr, l))
17211727
return r

0 commit comments

Comments
 (0)