summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d05c19e)
raw | patch | inline | side by side (parent: d05c19e)
author | anthonybaxter <anthonybaxter@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 24 Jun 2003 08:06:27 +0000 (08:06 +0000) | ||
committer | anthonybaxter <anthonybaxter@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 24 Jun 2003 08:06:27 +0000 (08:06 +0000) |
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
=.*==) showed nothing else that looked likely.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1774 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/rdbms_common.py | patch | blob | history |
index 2d4a67a1cc2d9c2a5f64c49b46dfa9232c2f306f..cb234ae9057db66bdf84c07452ccfd2f2e39376e 100644 (file)
-# $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:
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: