Skip to content

Commit 1619ed5

Browse files
author
Richard Jones
committed
make anydbm journal export handle removed properties
1 parent e79358b commit 1619ed5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Fixed:
2222
bug 950963)
2323
- always honor indexme property on Strings (sf patch 1063711)
2424
- make hyperdb value parsing errors readable in mailgw errors
25+
- make anydbm journal export handle removed properties
2526

2627

2728
2004-10-15 0.7.8

roundup/backends/back_anydbm.py

Lines changed: 6 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: back_anydbm.py,v 1.146.2.20 2004-11-11 06:09:43 richard Exp $
18+
#$Id: back_anydbm.py,v 1.146.2.21 2004-11-23 23:56:08 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
@@ -2043,6 +2043,11 @@ def export_journals(self):
20432043
date = date.get_tuple()
20442044
if action == 'set':
20452045
for propname, value in params.items():
2046+
if not properties.has_key(propname):
2047+
# property no longer in the schema
2048+
del params[propname]
2049+
continue
2050+
20462051
prop = properties[propname]
20472052
# make sure the params are eval()'able
20482053
if value is None:

0 commit comments

Comments
 (0)