Mercurial > p > roundup > code
changeset 2616:eaf74cf96cfa maint-0.7
removed references to py2.3+ boolean values [SF#995682]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 22 Jul 2004 04:46:11 +0000 |
| parents | 291c08916e5e |
| children | b386e8811932 |
| files | CHANGES.txt roundup/backends/back_anydbm.py roundup/backends/back_mysql.py |
| diffstat | 3 files changed, 8 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Thu Jul 22 00:39:08 2004 +0000 +++ b/CHANGES.txt Thu Jul 22 04:46:11 2004 +0000 @@ -5,6 +5,7 @@ Fixed: - ZRoundup's search interface works now (sf bug 994957) - fixed history display when "ascending" +- removed references to py2.3+ boolean values (sf bug 995682) 2004-07-21 0.7.6
--- a/roundup/backends/back_anydbm.py Thu Jul 22 00:39:08 2004 +0000 +++ b/roundup/backends/back_anydbm.py Thu Jul 22 04:46:11 2004 +0000 @@ -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.146.2.17 2004-07-21 01:02:15 richard Exp $ +#$Id: back_anydbm.py,v 1.146.2.18 2004-07-22 04:46:10 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 versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several @@ -1703,7 +1703,7 @@ # get the node value nv = node.get(k, None) - match = False + match = 0 # now apply the property filter if t == LINK: @@ -1724,7 +1724,7 @@ # required values for want in v: if want in nv: - match = True + match = 1 break elif t == STRING: if nv is None: @@ -1737,10 +1737,10 @@ else: if v.to_value: if v.from_value <= nv and v.to_value >= nv: - match = True + match = 1 else: if v.from_value <= nv: - match = True + match = 1 elif t == OTHER: # straight value comparison for the other types match = nv in v
--- a/roundup/backends/back_mysql.py Thu Jul 22 00:39:08 2004 +0000 +++ b/roundup/backends/back_mysql.py Thu Jul 22 04:46:11 2004 +0000 @@ -252,7 +252,7 @@ olddata = [] propnames = propnames + ['id', '__retired__'] cols = [] - first = True + first = 1 for entry in self.cursor.fetchall(): l = [] olddata.append(l) @@ -292,7 +292,7 @@ l.append(v.as_seconds()) else: l.append(e) - first = False + first = 0 self.drop_class_table_indexes(cn, old_spec[0])
