309 etype = iter(self.cw_rset.column_types(0)).next() |
309 etype = iter(self.cw_rset.column_types(0)).next() |
310 return display_name(self._cw, etype, form='plural') |
310 return display_name(self._cw, etype, form='plural') |
311 |
311 |
312 def call(self, **kwargs): |
312 def call(self, **kwargs): |
313 """display a list of entities by calling their <item_vid> view""" |
313 """display a list of entities by calling their <item_vid> view""" |
314 if not 'vtitle' in self._cw.form: |
314 showtitle = kwargs.pop('showtitle', not 'vtitle' in self._cw.form) |
|
315 if showtitle: |
315 self.w(u'<h1>%s</h1>' % self.title) |
316 self.w(u'<h1>%s</h1>' % self.title) |
316 super(SameETypeListView, self).call(**kwargs) |
317 super(SameETypeListView, self).call(**kwargs) |
317 |
318 |
318 def cell_call(self, row, col=0, **kwargs): |
319 def cell_call(self, row, col=0, **kwargs): |
319 self.wview(self.item_vid, self.cw_rset, row=row, col=col, **kwargs) |
320 self.wview(self.item_vid, self.cw_rset, row=row, col=col, **kwargs) |