Mercurial > p > roundup > code
changeset 2950:448cc54ffa1d maint-0.7
make anydbm journal export handle removed properties
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 23 Nov 2004 23:56:08 +0000 |
| parents | 94c8d60c827a |
| children | 6d3e2848e0ba |
| files | CHANGES.txt roundup/backends/back_anydbm.py |
| diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Mon Nov 22 02:38:24 2004 +0000 +++ b/CHANGES.txt Tue Nov 23 23:56:08 2004 +0000 @@ -22,6 +22,7 @@ bug 950963) - always honor indexme property on Strings (sf patch 1063711) - make hyperdb value parsing errors readable in mailgw errors +- make anydbm journal export handle removed properties 2004-10-15 0.7.8
--- a/roundup/backends/back_anydbm.py Mon Nov 22 02:38:24 2004 +0000 +++ b/roundup/backends/back_anydbm.py Tue Nov 23 23:56:08 2004 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: back_anydbm.py,v 1.146.2.20 2004-11-11 06:09:43 richard Exp $ +#$Id: back_anydbm.py,v 1.146.2.21 2004-11-23 23:56:08 richard Exp $ '''This module defines a backend that saves the hyperdatabase in a database chosen by anydbm. It is guaranteed to always be available in python versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several @@ -2043,6 +2043,11 @@ date = date.get_tuple() if action == 'set': for propname, value in params.items(): + if not properties.has_key(propname): + # property no longer in the schema + del params[propname] + continue + prop = properties[propname] # make sure the params are eval()'able if value is None:
