File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/collective/collectionfilter Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 2424from plone .i18n .normalizer import idnormalizer
2525from plone .memoize import ram
2626from plone .memoize .volatile import DontCache
27- import re
2827from six .moves .urllib .parse import urlencode
2928from zope .component import getUtility
3029from zope .globalrequest import getRequest
@@ -150,7 +149,6 @@ def get_filter_items(
150149 return None
151150 collection_url = collection .absolute_url ()
152151 option_url = "/" .join ([it for it in [collection_url , view_name ] if it ])
153-
154152 collection = ICollectionish (collection ).selectContent (content_selector )
155153 if (
156154 collection is None or not collection .content_selector
@@ -196,7 +194,7 @@ def get_filter_items(
196194 # Allow value_blacklist to be callables for runtime-evaluation
197195 value_blacklist = (
198196 value_blacklist () if callable (value_blacklist ) else value_blacklist
199- )
197+ ) # noqa
200198 # fallback to title sorted values
201199 sort_key_function = groupby_criteria [group_by ].get (
202200 "sort_key_function" , lambda it : it ["title" ].lower ()
You can’t perform that action at this time.
0 commit comments