web/views/tableview.py
changeset 8159 f8678956bd05
parent 8156 f47252e24354
parent 8157 098c83a99807
child 8190 2a3c1b787688
equal deleted inserted replaced
8158:2ee254e74382 8159:f8678956bd05
   505         return navcomp.ajax_page_url(**params)
   505         return navcomp.ajax_page_url(**params)
   506 
   506 
   507 
   507 
   508 class RsetTableColRenderer(AbstractColumnRenderer):
   508 class RsetTableColRenderer(AbstractColumnRenderer):
   509     """Default renderer for :class:`RsetTableView`."""
   509     """Default renderer for :class:`RsetTableView`."""
   510     default_cellvid = 'incontext'
   510 
   511 
   511     def __init__(self, cellvid, **kwargs):
   512     def __init__(self, cellvid=None, **kwargs):
       
   513         super(RsetTableColRenderer, self).__init__(**kwargs)
   512         super(RsetTableColRenderer, self).__init__(**kwargs)
   514         self.cellvid = cellvid or self.default_cellvid
   513         self.cellvid = cellvid
   515 
   514 
   516     def bind(self, view, colid):
   515     def bind(self, view, colid):
   517         super(RsetTableColRenderer, self).bind(view, colid)
   516         super(RsetTableColRenderer, self).bind(view, colid)
   518         self.cw_rset = view.cw_rset
   517         self.cw_rset = view.cw_rset
   519     def render_cell(self, w, rownum):
   518     def render_cell(self, w, rownum):