From 387441f5eb4ea526c9c4144f14e12cd024ad992f Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 26 Feb 2003 04:55:57 +0000 Subject: [PATCH] applied patch 688595 git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1547 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/hyperdb.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roundup/hyperdb.py b/roundup/hyperdb.py index 52c9acc..f78be25 100644 --- a/roundup/hyperdb.py +++ b/roundup/hyperdb.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: hyperdb.py,v 1.85 2003-02-18 01:57:38 richard Exp $ +# $Id: hyperdb.py,v 1.86 2003-02-26 04:55:57 richard Exp $ """ Hyperdatabase implementation, especially field types. @@ -588,6 +588,11 @@ class Node: return l def has_key(self, name): return self.cl.getprops().has_key(name) + def get(self, name, default=None): + if self.has_key(name): + return self[name] + else: + return default def __getattr__(self, name): if self.__dict__.has_key(name): return self.__dict__[name] -- 2.30.2