Revision 60cba7f8 lib/qlang.py
b/lib/qlang.py | ||
---|---|---|
73 | 73 |
result.append(value) |
74 | 74 |
|
75 | 75 |
return result |
76 |
|
|
77 |
|
|
78 |
def MakeSimpleFilter(namefield, values): |
|
79 |
"""Builds a filter for use with L{ReadSimpleFilter}. |
|
80 |
|
|
81 |
@param namefield: Name of field containing item name |
|
82 |
@param values: List of names |
|
83 |
|
|
84 |
""" |
|
85 |
if values: |
|
86 |
return [OP_OR] + [[OP_EQUAL, namefield, i] for i in values] |
|
87 |
|
|
88 |
return None |
Also available in: Unified diff