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
seda
Commits
80bc50d38a87
Commit
f313a80f
authored
Jun 13, 2016
by
Sylvain Thénault
Browse files
[ui] Drop no more necessary arguments
They should have gone way with
f05455602004
but buffer wasn't saved :$
parent
44f21dc91318
Changes
1
Hide whitespace changes
Inline
Side-by-side
views/viewlib.py
View file @
80bc50d3
...
...
@@ -192,14 +192,14 @@ class SubObjectsTab(tabs.TabsMixin, EntityView):
self
.
w
(
button
)
self
.
w
(
tags
.
div
(
klass
=
'clearfix'
))
def
display_subobjects_list
(
self
,
entity
,
edit
=
True
,
delete
=
True
):
def
display_subobjects_list
(
self
,
entity
):
for
rtype
,
role
,
target
in
self
.
rtype_role_targets
:
rset
=
entity
.
related
(
rtype
,
role
)
if
rset
:
if
target
is
not
None
:
self
.
w
(
'<h2>%s</h2>'
%
self
.
_cw
.
__
(
target
+
'_plural'
))
self
.
_cw
.
view
(
'list'
,
rset
=
rset
,
parent
=
self
.
parent
(
entity
),
w
=
self
.
w
,
subvid
=
self
.
subvid
,
tabid
=
self
.
__regid__
,
edit
=
edit
,
delete
=
delete
)
subvid
=
self
.
subvid
,
tabid
=
self
.
__regid__
)
def
url_params
(
self
,
entity
):
return
{
'__redirectparams'
:
'tab='
+
self
.
__regid__
}
...
...
Write
Preview
Markdown
is supported
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