Mercurial > p > roundup > code
diff roundup/backends/rdbms_common.py @ 4044:27a9906cd8d1
Fix issue2550505.
| author | Stefan Seefeld <stefan@seefeld.name> |
|---|---|
| date | Mon, 16 Feb 2009 22:43:07 +0000 |
| parents | f44ec45cedb4 |
| children | ef0b4396888a |
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py Mon Feb 16 21:26:29 2009 +0000 +++ b/roundup/backends/rdbms_common.py Mon Feb 16 22:43:07 2009 +0000 @@ -2114,7 +2114,7 @@ backward-compatibility reasons a single (dir, prop) tuple is also allowed. - "search_matches" is {nodeid: marker} or None + "search_matches" is a sequence type or None The filter must match all properties specificed. If the property value to match is a list: @@ -2123,7 +2123,7 @@ 2. Other properties must match any of the elements in the list. """ # we can't match anything if search_matches is empty - if search_matches == {}: + if not search_matches and search_matches is not None: return [] if __debug__: @@ -2334,8 +2334,7 @@ # add results of full text search if search_matches is not None: - v = search_matches.keys() - s = ','.join([a for x in v]) + s = ','.join([a for x in search_matches]) where.append('_%s.id in (%s)'%(icn, s)) args = args + v
