From: richard Date: Thu, 31 Oct 2002 04:03:48 +0000 (+0000) Subject: hardening for stringFind with missing props X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=82cde8a57c948b36703f31f1839f269fa0d28b5f;p=roundup.git hardening for stringFind with missing props git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1370 57a73879-2fb5-44c3-a270-3262357dd7e2 --- 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: