Mercurial > p > roundup > code
diff roundup/backends/back_anydbm.py @ 2601:113548baeed2
API clarification.
Previously, the anydbm/bsddb/metakit filter() methods had required
exact matches to Multilink argument lists. The RDBMS backends treated
Multilink matches like all other data types - matching any of the
Multilink argument list is good enough. The latter behaviour is
implemented across the board now.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 20 Jul 2004 22:56:18 +0000 |
| parents | f25ff5a05abd |
| children | 17eb5aeada7f |
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py Tue Jul 20 07:26:40 2004 +0000 +++ b/roundup/backends/back_anydbm.py Tue Jul 20 22:56:18 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.162 2004-07-20 07:26:40 richard Exp $ +#$Id: back_anydbm.py,v 1.163 2004-07-20 22:56:18 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 @@ -1536,9 +1536,7 @@ The filter must match all properties specificed - but if the property value to match is a list, any one of the values in the - list may match for that property to match. Unless the property - is a Multilink, in which case the item's property list must - match the filterspec list. + list may match for that property to match. """ if __debug__: start_t = time.time() @@ -1666,10 +1664,9 @@ # othewise, make sure this node has each of the # required values for want in v: - if want not in nv: + if want in nv: + match = True break - else: - match = True elif t == STRING: if nv is None: nv = ''
