Mercurial > p > roundup > code
changeset 2606:17eb5aeada7f
fix bug exposed by earlier change to defaulting of *dbm property values
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 21 Jul 2004 00:51:21 +0000 |
| parents | 6e9bd67fefa9 |
| children | 151ee7f0ca7d |
| files | roundup/backends/back_anydbm.py |
| diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py Wed Jul 21 00:50:50 2004 +0000 +++ b/roundup/backends/back_anydbm.py Wed Jul 21 00:51:21 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.163 2004-07-20 22:56:18 richard Exp $ +#$Id: back_anydbm.py,v 1.164 2004-07-21 00:51:21 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 @@ -1383,6 +1383,8 @@ node = self.db.getnode(self.classname, nodeid, cldb) if node.has_key(self.db.RETIRED_FLAG): continue + if not node.has_key(self.key): + continue if node[self.key] == keyvalue: return nodeid finally:
