Skip to content

Commit 86f4444

Browse files
author
Richard Jones
committed
merge from maint-0-7
1 parent 8631183 commit 86f4444

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Feature:
2222
Fixed:
2323
- ZRoundup's search interface works now (sf bug 994957)
2424
- fixed history display when "ascending"
25+
- removed references to py2.3+ boolean values (sf bug 995682)
2526

2627

2728
2004-07-21 0.7.6

roundup/backends/back_anydbm.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_anydbm.py,v 1.165 2004-07-21 01:01:44 richard Exp $
18+
#$Id: back_anydbm.py,v 1.166 2004-07-22 04:47:35 richard Exp $
1919
'''This module defines a backend that saves the hyperdatabase in a
2020
database chosen by anydbm. It is guaranteed to always be available in python
2121
versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several
@@ -1653,7 +1653,7 @@ def filter(self, search_matches, filterspec, sort=(None,None),
16531653
# get the node value
16541654
nv = node.get(k, None)
16551655

1656-
match = False
1656+
match = 0
16571657

16581658
# now apply the property filter
16591659
if t == LINK:
@@ -1674,7 +1674,7 @@ def filter(self, search_matches, filterspec, sort=(None,None),
16741674
# required values
16751675
for want in v:
16761676
if want in nv:
1677-
match = True
1677+
match = 1
16781678
break
16791679
elif t == STRING:
16801680
if nv is None:
@@ -1687,10 +1687,10 @@ def filter(self, search_matches, filterspec, sort=(None,None),
16871687
else:
16881688
if v.to_value:
16891689
if v.from_value <= nv and v.to_value >= nv:
1690-
match = True
1690+
match = 1
16911691
else:
16921692
if v.from_value <= nv:
1693-
match = True
1693+
match = 1
16941694
elif t == OTHER:
16951695
# straight value comparison for the other types
16961696
match = nv in v

roundup/backends/back_mysql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def add_new_columns_v2(self):
242242
olddata = []
243243
propnames = propnames + ['id', '__retired__']
244244
cols = []
245-
first = True
245+
first = 1
246246
for entry in self.cursor.fetchall():
247247
l = []
248248
olddata.append(l)
@@ -284,7 +284,7 @@ def add_new_columns_v2(self):
284284
l.append(v.as_seconds())
285285
else:
286286
l.append(e)
287-
first = False
287+
first = 0
288288

289289
self.drop_class_table_indexes(cn, old_spec[0])
290290

0 commit comments

Comments
 (0)