399 def call(self, **kwargs): |
399 def call(self, **kwargs): |
400 """display a list of entities by calling their <item_vid> view""" |
400 """display a list of entities by calling their <item_vid> view""" |
401 showtitle = kwargs.pop('showtitle', not 'vtitle' in self._cw.form) |
401 showtitle = kwargs.pop('showtitle', not 'vtitle' in self._cw.form) |
402 if showtitle: |
402 if showtitle: |
403 self.w(u'<h1>%s</h1>' % self.title) |
403 self.w(u'<h1>%s</h1>' % self.title) |
404 super(SameETypeListView, self).call(**kwargs) |
404 subvid = self._cw.form.pop('subvid', None) |
405 |
405 super(SameETypeListView, self).call(vid=subvid, **kwargs) |
406 def cell_call(self, row, col=0, **kwargs): |
406 |
407 self.wview(self.item_vid, self.cw_rset, row=row, col=col, **kwargs) |
407 def cell_call(self, row, col=0, vid=None, **kwargs): |
|
408 self.wview(self.item_vid, self.cw_rset, row=row, col=col, vid=vid, **kwargs) |
408 |
409 |
409 |
410 |
410 class SameETypeListItemView(EntityView): |
411 class SameETypeListItemView(EntityView): |
411 __regid__ = 'sameetypelistitem' |
412 __regid__ = 'sameetypelistitem' |
412 |
413 |