Commit 4247d588 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[flake8] Fix W504 line break after binary operator

Spotted by flake8 version 3.6.0.
parent e4023898cbe4
......@@ -182,8 +182,8 @@ class ConceptPrimaryView(tabs.TabbedPrimaryView):
class ConceptConceptsTab(tabs.TabsMixin, EntityView):
"""display a SKOS concept tree"""
__regid__ = 'skos_sub_concepts_tab' # don't use '.' in tab's regid
__select__ = (is_instance('Concept') &
has_related_entities('narrower_concept'))
__select__ = (is_instance('Concept')
& has_related_entities('narrower_concept'))
def entity_call(self, entity):
rset = entity.related('narrower_concept')
......@@ -209,9 +209,9 @@ class ConceptLabelsComponent(component.EntityCtxComponent):
class ConceptMultiSchemeComponent(component.EntityCtxComponent):
"""display a SKOS concept's schemes if there are more than one"""
__regid__ = 'skos.concept.parent-schemes'
__select__ = (component.EntityCtxComponent.__select__ &
is_instance('Concept') &
score_entity(lambda x: len(x.in_scheme) > 1))
__select__ = (component.EntityCtxComponent.__select__
& is_instance('Concept')
& score_entity(lambda x: len(x.in_scheme) > 1))
title = _('ConceptScheme_plural')
context = 'navcontentbottom'
order = 1
......@@ -288,10 +288,10 @@ class ConceptSchemeEditController(editcontroller.EditController):
"""Custom edit controller for ConceptScheme entity to handle import of
concepts from file provided in edition form.
"""
__select__ = (editcontroller.EditController.__select__ &
match_edited_type('ConceptScheme') &
match_form_params('stream', 'format', 'encoding', 'language_code', 'delimiter') &
params_in_form('stream'))
__select__ = (editcontroller.EditController.__select__
& match_edited_type('ConceptScheme')
& match_form_params('stream', 'format', 'encoding', 'language_code', 'delimiter')
& params_in_form('stream'))
def edit_entity(self, formparams, multiple=False):
"""Use created entity and import concepts from specified file."""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment