ability to use filters as classes in chain (refs #1426)
This commit is contained in:
parent
2268eb2ff1
commit
983ed221e2
4 changed files with 18 additions and 15 deletions
|
|
@ -71,6 +71,8 @@ class _Filter(object):
|
|||
return self
|
||||
|
||||
def __and__(self, o):
|
||||
if isinstance(o, type) and issubclass(o, _Filter):
|
||||
o = o()
|
||||
o.selector = self
|
||||
return o
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue