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 c556613b9f
commit 3bf023e4df
1 changed files with 1 additions and 1 deletions

View File

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