Mercurial > p > roundup > code
comparison roundup/backends/rdbms_common.py @ 3455:e01bc6d65fa9
fixed documentation of filter()...
...in the case of multiple values in a String search [SF#1373396]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 13 Jan 2006 00:05:46 +0000 |
| parents | 4aeb0d0cf0d6 |
| children | 1142dafe0d7f |
comparison
equal
deleted
inserted
replaced
| 3454:d4cbdfedab1b | 3455:e01bc6d65fa9 |
|---|---|
| 1 # $Id: rdbms_common.py,v 1.159 2005-10-07 05:35:04 richard Exp $ | 1 # $Id: rdbms_common.py,v 1.160 2006-01-13 00:05:46 richard Exp $ |
| 2 ''' Relational database (SQL) backend common code. | 2 ''' Relational database (SQL) backend common code. |
| 3 | 3 |
| 4 Basics: | 4 Basics: |
| 5 | 5 |
| 6 - map roundup classes to relational tables | 6 - map roundup classes to relational tables |
| 2048 "sort" and "group" are (dir, prop) where dir is '+', '-' or None | 2048 "sort" and "group" are (dir, prop) where dir is '+', '-' or None |
| 2049 and prop is a prop name or None | 2049 and prop is a prop name or None |
| 2050 | 2050 |
| 2051 "search_matches" is {nodeid: marker} or None | 2051 "search_matches" is {nodeid: marker} or None |
| 2052 | 2052 |
| 2053 The filter must match all properties specificed - but if the | 2053 The filter must match all properties specificed. If the property |
| 2054 property value to match is a list, any one of the values in the | 2054 value to match is a list: |
| 2055 list may match for that property to match. | 2055 |
| 2056 1. String properties must match all elements in the list, and | |
| 2057 2. Other properties must match any of the elements in the list. | |
| 2056 ''' | 2058 ''' |
| 2057 # we can't match anything if search_matches is empty | 2059 # we can't match anything if search_matches is empty |
| 2058 if search_matches == {}: | 2060 if search_matches == {}: |
| 2059 return [] | 2061 return [] |
| 2060 | 2062 |
