From f75cb085b226a4e5e6e3195476c1d368330da0d8 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 4 Nov 2010 13:58:55 +0000 Subject: [PATCH] Allow customFilters.get_filters() to return a list where an item might be a list of custom filters svn: r16129 --- src/Filters/_FilterMenu.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Filters/_FilterMenu.py b/src/Filters/_FilterMenu.py index 1d80c5945..29eadfbcd 100644 --- a/src/Filters/_FilterMenu.py +++ b/src/Filters/_FilterMenu.py @@ -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