From: richard Date: Fri, 16 Aug 2002 04:28:13 +0000 (+0000) Subject: added is_retired query to Class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cf295ab025ea9d1a2c875af98cd06f8cc3c5f403;p=roundup.git added is_retired query to Class git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@956 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/backends/back_anydbm.py b/roundup/backends/back_anydbm.py index 0de7702..ee25b12 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.58 2002-08-01 15:06:24 gmcm Exp $ +#$Id: back_anydbm.py,v 1.59 2002-08-16 04:28:13 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 @@ -1162,6 +1162,14 @@ class Class(hyperdb.Class): self.fireReactors('retire', nodeid, None) + def is_retired(self, nodeid): + '''Return true if the node is retired. + ''' + node = self.db.getnode(cn, nodeid, cldb) + if node.has_key(self.db.RETIRED_FLAG): + return 1 + return 0 + def destroy(self, nodeid): """Destroy a node. @@ -1795,6 +1803,12 @@ class IssueClass(Class, roundupdb.IssueClass): # #$Log: not supported by cvs2svn $ +#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. +#Fix htmltemplate's do_link so [No ] strings are href'd. +#Fix bogus "nosy edited ok" msg - the **d syntax does NOT share d between caller and callee. +# #Revision 1.57 2002/07/31 23:57:36 richard # . web forms may now unset Link values (like assignedto) # diff --git a/roundup/hyperdb.py b/roundup/hyperdb.py index 0ac911b..d413ae4 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.79 2002-07-29 23:30:14 richard Exp $ +# $Id: hyperdb.py,v 1.80 2002-08-16 04:28:13 richard Exp $ __doc__ = """ Hyperdatabase implementation, especially field types. @@ -416,6 +416,11 @@ class Class: """ raise NotImplementedError + def is_retired(self, nodeid): + '''Return true if the node is rerired + ''' + raise NotImplementedError + def destroy(self, nodeid): """Destroy a node. @@ -604,6 +609,9 @@ def Choice(name, db, *options): # # $Log: not supported by cvs2svn $ +# Revision 1.79 2002/07/29 23:30:14 richard +# documentation reorg post-new-security +# # Revision 1.78 2002/07/21 03:26:37 richard # Gordon, does this help? #