From: anthonybaxter Date: Tue, 24 Jun 2003 08:06:27 +0000 (+0000) Subject: sqlite backend now passes all tests under 2.3. Searching for other parts X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cf4150ddbfc19b0f3e7348e9fe73de690ed2edca;p=roundup.git sqlite backend now passes all tests under 2.3. Searching for other parts of the code that was assigning the value of a boolean test (either =.*not or =.*==) showed nothing else that looked likely. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1774 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/backends/rdbms_common.py b/roundup/backends/rdbms_common.py index 2d4a67a..cb234ae 100644 --- a/roundup/backends/rdbms_common.py +++ b/roundup/backends/rdbms_common.py @@ -1,4 +1,4 @@ -# $Id: rdbms_common.py,v 1.55 2003-04-22 20:53:54 kedder Exp $ +# $Id: rdbms_common.py,v 1.56 2003-06-24 08:06:27 anthonybaxter Exp $ ''' Relational database (SQL) backend common code. Basics: @@ -1739,10 +1739,9 @@ class Class(hyperdb.Class): Set retired=None to get all nodes. Otherwise it'll get all the retired or non-retired nodes, depending on the flag. ''' - # flip the sense of the flag if we don't want all of them + # flip the sense of the 'retired' flag if we don't want all of them if retired is not None: - retired = not retired - args = (retired, ) + args = (((retired==0) and 1) or 0, ) sql = 'select id from _%s where __retired__ <> %s'%(self.classname, self.db.arg) else: