From 970c35dc096e4f593c989a668c32b7d281231d05 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 19 Aug 2002 00:23:19 +0000 Subject: [PATCH] handle "unset" initial Link values (!) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@966 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/backends/back_anydbm.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roundup/backends/back_anydbm.py b/roundup/backends/back_anydbm.py index ee25b12..6127105 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.59 2002-08-16 04:28:13 richard Exp $ +#$Id: back_anydbm.py,v 1.60 2002-08-19 00:23:19 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 @@ -743,7 +743,7 @@ class Class(hyperdb.Class): raise KeyError, '"%s" has no property "%s"'%(self.classname, key) - if isinstance(prop, Link): + if value is not None and isinstance(prop, Link): if type(value) != type(''): raise ValueError, 'link value must be String' link_class = self.properties[key].classname @@ -1803,6 +1803,9 @@ class IssueClass(Class, roundupdb.IssueClass): # #$Log: not supported by cvs2svn $ +#Revision 1.59 2002/08/16 04:28:13 richard +#added is_retired query to Class +# #Revision 1.58 2002/08/01 15:06:24 gmcm #Use same regex to split search terms as used to index text. #Fix to back_metakit for not changing journaltag on reopen. -- 2.30.2