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
treeview
Commits
cb72a0cbc2b7
Commit
a0fa7433
authored
Jun 21, 2019
by
Noé Gaumont
🐙
Browse files
[autopep8] E22 - Fix extraneous whitespace around keywords
parent
15eb71762bd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_treeview/views/treeview.py
View file @
cb72a0cb
...
...
@@ -98,7 +98,7 @@ class TVDefaultTreeViewItemView(treeview.DefaultTreeViewItemView):
def
cell_call
(
self
,
row
,
col
,
vid
=
'oneline'
,
treeid
=
None
,
**
morekwargs
):
assert
treeid
is
not
None
entity
=
self
.
cw_rset
.
get_entity
(
row
,
col
)
entity
=
self
.
cw_rset
.
get_entity
(
row
,
col
)
itemview
=
entity
.
view
(
vid
,
**
morekwargs
)
# treeview customization : add css classe
liclasses
=
[
u
'cw-%s'
%
entity
.
__regid__
.
lower
()]
...
...
@@ -170,7 +170,7 @@ class TVTreeviewOneLineEditView(baseviews.InContextView):
def
cell_call
(
self
,
row
,
col
,
tree_uid
,
multiple
,
leavesonly
,
related
,
required
,
level
):
entity
=
self
.
cw_rset
.
get_entity
(
row
,
col
)
entity_name
=
xml_escape
(
entity
.
dc_title
())
entity_name
=
xml_escape
(
entity
.
dc_title
())
itree
=
entity
.
cw_adapt_to
(
'ITree'
)
is_leaf
=
itree
.
is_editable_leaf
()
entity_level
=
self
.
entity_level
(
itree
)
...
...
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