git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1a8270
)
- Filters can be null
author
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 9 Nov 2006 19:32:20 +0000
(19:32 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 9 Nov 2006 19:32:20 +0000
(19:32 +0000)
PLC/Filter.py
patch
|
blob
|
history
diff --git
a/PLC/Filter.py
b/PLC/Filter.py
index
66e9aee
..
a7c14ce
100644
(file)
--- a/
PLC/Filter.py
+++ b/
PLC/Filter.py
@@
-36,7
+36,8
@@
class Filter(Parameter, dict):
# Accept either a value or a list of values of the specified type
self.fields[field] = Mixed(expected, [expected])
- Parameter.__init__(self, self.fields, doc = doc)
+ # Null filter means no filter
+ Parameter.__init__(self, self.fields, doc = doc, nullok = True)
def sql(self, api, join_with = "AND"):
"""