Mercurial > p > roundup > code
comparison roundup/backends/back_mysql.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 | 0d9406d14186 |
| children | 88f0a5030404 |
comparison
equal
deleted
inserted
replaced
| 3454:d4cbdfedab1b | 3455:e01bc6d65fa9 |
|---|---|
| 1 #$Id: back_mysql.py,v 1.60 2005-10-24 03:37:11 richard Exp $ | 1 #$Id: back_mysql.py,v 1.61 2006-01-13 00:05:46 richard Exp $ |
| 2 # | 2 # |
| 3 # Copyright (c) 2003 Martynas Sklyzmantas, Andrey Lebedev <andrey@micro.lt> | 3 # Copyright (c) 2003 Martynas Sklyzmantas, Andrey Lebedev <andrey@micro.lt> |
| 4 # | 4 # |
| 5 # This module is free software, and you may redistribute it and/or modify | 5 # This module is free software, and you may redistribute it and/or modify |
| 6 # under the same terms as Python, so long as this copyright message and | 6 # under the same terms as Python, so long as this copyright message and |
| 506 "sort" and "group" are (dir, prop) where dir is '+', '-' or None | 506 "sort" and "group" are (dir, prop) where dir is '+', '-' or None |
| 507 and prop is a prop name or None | 507 and prop is a prop name or None |
| 508 | 508 |
| 509 "search_matches" is {nodeid: marker} or None | 509 "search_matches" is {nodeid: marker} or None |
| 510 | 510 |
| 511 The filter must match all properties specificed - but if the | 511 The filter must match all properties specificed. If the property |
| 512 property value to match is a list, any one of the values in the | 512 value to match is a list: |
| 513 list may match for that property to match. | 513 |
| 514 1. String properties must match all elements in the list, and | |
| 515 2. Other properties must match any of the elements in the list. | |
| 514 ''' | 516 ''' |
| 515 # we can't match anything if search_matches is empty | 517 # we can't match anything if search_matches is empty |
| 516 if search_matches == {}: | 518 if search_matches == {}: |
| 517 return [] | 519 return [] |
| 518 | 520 |
