Mercurial > p > roundup > code
changeset 2964:b71f6d0a463d
merge from maint-0-7
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 25 Nov 2004 22:59:17 +0000 |
| parents | 4607f58a007b |
| children | 2ddba486546a |
| files | roundup/backends/back_anydbm.py |
| diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py Thu Nov 25 22:51:06 2004 +0000 +++ b/roundup/backends/back_anydbm.py Thu Nov 25 22:59:17 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.177 2004-11-12 10:43:31 a1s Exp $ +#$Id: back_anydbm.py,v 1.178 2004-11-25 22:59:17 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 @@ -381,10 +381,12 @@ properties = self.getclass(classname).getprops() d = {} for k, v in node.items(): - # if the property doesn't exist, or is the "retired" flag then - # it won't be in the properties dict + if k == self.RETIRED_FLAG: + d[k] = v + continue + + # if the property doesn't exist then we really don't care if not properties.has_key(k): - d[k] = v continue # get the property spec
