From 82cde8a57c948b36703f31f1839f269fa0d28b5f Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 31 Oct 2002 04:03:48 +0000 Subject: [PATCH] hardening for stringFind with missing props git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1370 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/backends/back_anydbm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roundup/backends/back_anydbm.py b/roundup/backends/back_anydbm.py index 755dab3..13ba17a 100644 --- a/roundup/backends/back_anydbm.py +++ b/roundup/backends/back_anydbm.py @@ -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.89 2002-10-08 04:11:14 richard Exp $ +#$Id: back_anydbm.py,v 1.90 2002-10-31 04:03:48 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 @@ -1506,6 +1506,8 @@ class Class(hyperdb.Class): if node.has_key(self.db.RETIRED_FLAG): continue for key, value in requirements.items(): + if not node.has_key(key): + break if node[key] is None or node[key].lower() != value: break else: -- 2.30.2