add BooleanSearchFilter
This commit is contained in:
parent
95c277b596
commit
7805018f13
1 changed files with 10 additions and 0 deletions
|
@ -69,6 +69,16 @@ class SearchFilter(edbob.Object):
|
|||
return tags.text(self.name, self.search.config.get(self.name))
|
||||
|
||||
|
||||
class BooleanSearchFilter(SearchFilter):
|
||||
"""
|
||||
Boolean search filter.
|
||||
"""
|
||||
|
||||
def value_control(self):
|
||||
return tags.select(self.name, self.search.config.get(self.name),
|
||||
["True", "False"])
|
||||
|
||||
|
||||
class SearchForm(Form):
|
||||
"""
|
||||
Generic form class which aggregates :class:`SearchFilter` instances.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue