[added] __nonzero__ method for boolean tests on FilterOptions object
This commit is contained in:
parent
94448297bb
commit
43f9e6fe0d
@ -206,6 +206,9 @@ class FilterOptions(object):
|
||||
order=self.getOrder())
|
||||
return hrs
|
||||
|
||||
def __nonzero__(self):
|
||||
return bool(self.getFilterType())
|
||||
|
||||
def parseFilterOptions(self):
|
||||
if self.getFilterType():
|
||||
robject = {'type': self.getFilterType(), 'corners': self.getOrder()}
|
||||
|
Loading…
Reference in New Issue
Block a user