Commit f313a80f authored by Sylvain Thénault's avatar 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
...@@ -192,14 +192,14 @@ class SubObjectsTab(tabs.TabsMixin, EntityView): ...@@ -192,14 +192,14 @@ class SubObjectsTab(tabs.TabsMixin, EntityView):
self.w(button) self.w(button)
self.w(tags.div(klass='clearfix')) 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: for rtype, role, target in self.rtype_role_targets:
rset = entity.related(rtype, role) rset = entity.related(rtype, role)
if rset: if rset:
if target is not None: if target is not None:
self.w('<h2>%s</h2>' % self._cw.__(target + '_plural')) self.w('<h2>%s</h2>' % self._cw.__(target + '_plural'))
self._cw.view('list', rset=rset, parent=self.parent(entity), w=self.w, 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): def url_params(self, entity):
return {'__redirectparams': 'tab=' + self.__regid__} return {'__redirectparams': 'tab=' + self.__regid__}
......
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