Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
squareui
Commits
ff89d2885e00
Commit
4832283b
authored
Feb 05, 2019
by
Nsukami Patrick
Browse files
Flake8: fix F811
parent
eb29d34a4d78
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_squareui/views/basetemplates.py
View file @
ff89d288
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment