Skip to content

Commit

Permalink
Merge pull request #6 from IMIO/master
Browse files Browse the repository at this point in the history
Pylint.
  • Loading branch information
avoinea committed Sep 17, 2015
2 parents 07f96cb + 442aabe commit 45c4a94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eea/faceted/vocabularies/autocomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@

class AutocompleteVocabulary(object):
"""
Vocabulary factory listing autocomplete suggestions views
"""
implements(IVocabularyFactory)

def __call__(self, context):
"""
See IVocabularyFactory interface
"""
factories = getAdapters(
(context, context.REQUEST),
IAutocompleteSuggest
)
terms = [SimpleTerm(f[0], f[0], getattr(f[1], 'label', f[0])) for f in factories]
terms = [SimpleTerm(f[0], f[0], getattr(f[1], 'label', f[0]))
for f in factories]
return SimpleVocabulary(terms)


Expand Down

0 comments on commit 45c4a94

Please sign in to comment.