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): |