fix error in #2085 commit 3ca886ac7ad5: value may be a tuple

This commit is contained in:
Calum Lind 2012-12-11 00:57:48 +00:00
parent b65918d616
commit 70047c367a
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class FilterManager(component.Component):
#sanitize input: filter-value must be a list of strings
for key, value in filter_dict.items():
if not isinstance(value, list):
if isinstance(value, basestring):
filter_dict[key] = [value]
if "id" in filter_dict: #optimized filter for id: