Allow customFilters.get_filters() to return a list where an item might be a list of custom filters

svn: r16129
This commit is contained in:
Doug Blank 2010-11-04 13:58:55 +00:00
parent e5d0bfccad
commit f75cb085b2

View File

@ -46,5 +46,8 @@ def build_filter_model(space, local = []):
return None
for filt in flist:
if isinstance(filt, (list, tuple)):
for subfilt in filt:
model.append(row=[subfilt.get_name(), subfilt])
model.append(row=[filt.get_name(), filt])
return model