Skip to content

Commit a06b7a6

Browse files
author
Richard Jones
committed
merge fixes from HEAD
1 parent b60abf8 commit a06b7a6

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

CHANGES.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

4+
5+
2003-??-?? 0.5.5
6+
- fixed rdbms searching by ID (sf bug 666615)
7+
- detect corrupted index and raise semi-useful exception (sf bug 666767)
8+
9+
410
2003-01-10 0.5.4
511
- key the templates cache off full path, not filename
612
- implemented whole-database locking

roundup/backends/back_gadfly.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: back_gadfly.py,v 1.31 2003-01-08 05:39:40 richard Exp $
1+
# $Id: back_gadfly.py,v 1.31.2.1 2003-01-12 23:57:15 richard Exp $
22
''' Gadlfy relational database hypderb backend.
33
44
About Gadfly
@@ -185,6 +185,14 @@ def filter(self, search_matches, filterspec, sort=(None,None),
185185
else:
186186
where.append('_%s=%s'%(k, a))
187187
args.append(date.Interval(v).serialise())
188+
elif k == 'id':
189+
if isinstance(v, type([])):
190+
s = ','.join([a for x in v])
191+
where.append('%s in (%s)'%(k, s))
192+
args = args + v
193+
else:
194+
where.append('%s=%s'%(k, a))
195+
args.append(v)
188196
else:
189197
if isinstance(v, type([])):
190198
s = ','.join([a for x in v])

roundup/backends/rdbms_common.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.27 2003-01-08 05:39:40 richard Exp $
1+
# $Id: rdbms_common.py,v 1.27.2.1 2003-01-12 23:57:16 richard Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -1762,6 +1762,14 @@ def filter(self, search_matches, filterspec, sort=(None,None),
17621762
else:
17631763
where.append('id=%s.nodeid and %s.linkid = %s'%(tn, tn, a))
17641764
args.append(v)
1765+
elif k == 'id':
1766+
if isinstance(v, type([])):
1767+
s = ','.join([a for x in v])
1768+
where.append('%s in (%s)'%(k, s))
1769+
args = args + v
1770+
else:
1771+
where.append('%s=%s'%(k, a))
1772+
args.append(v)
17651773
elif isinstance(propclass, String):
17661774
if not isinstance(v, type([])):
17671775
v = [v]

0 commit comments

Comments
 (0)