Commit 4832283b authored by Nsukami Patrick's avatar Nsukami Patrick
Browse files

Flake8: fix F811

parent eb29d34a4d78
......@@ -32,7 +32,7 @@ basetemplates.TheMainTemplate.twbs_col_size = 2
basetemplates.TheMainTemplate.twbs_grid_columns = 12
@monkeypatch(basetemplates.TheMainTemplate)
@monkeypatch(basetemplates.TheMainTemplate) # noqa: F811
def call(self, view):
self.set_request_content_type()
self.template_header(self.content_type, view)
......@@ -87,7 +87,7 @@ def template_page_content(self, view):
self.w(u'</body>\n')
@monkeypatch(basetemplates.TheMainTemplate)
@monkeypatch(basetemplates.TheMainTemplate) # noqa: F811
def get_components(self, view, context):
ctxcomponents = self._cw.vreg['ctxcomponents']
return ctxcomponents.poss_visible_objects(self._cw,
......@@ -201,13 +201,13 @@ SearchBox.context = 'header-right'
SearchBox.layout_id = 'simple-layout'
@monkeypatch(basetemplates.HTMLPageHeader)
@monkeypatch(basetemplates.HTMLPageHeader) # noqa: F811
def call(self, view, **kwargs):
self.main_header(view)
self.breadcrumbs(view)
def get_components(self, view, context):
def get_components(self, view, context): # noqa: F811
ctxcomponents = self._cw.vreg['ctxcomponents']
return ctxcomponents.poss_visible_objects(self._cw,
rset=self.cw_rset,
......@@ -280,7 +280,7 @@ def breadcrumbs(self, view):
self.w(u'</nav>')
@monkeypatch(basetemplates.HTMLContentFooter)
@monkeypatch(basetemplates.HTMLContentFooter) # noqa: F811
def call(self, view, **kwargs):
components = self._cw.vreg['ctxcomponents'].poss_visible_objects(
self._cw, rset=self.cw_rset, view=view, context='navbottom')
......@@ -292,7 +292,7 @@ def call(self, view, **kwargs):
self.w(u'</div>')
@monkeypatch(basetemplates.HTMLPageFooter)
@monkeypatch(basetemplates.HTMLPageFooter) # noqa: F811
def call(self, **kwargs):
self.w(u'<footer id="pagefooter" role="contentinfo">')
self.footer_content()
......
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