web/views/primary.py
changeset 4004 c52619c738a5
parent 3998 94cc7cad3d2d
child 4072 ead446e70c28
child 4073 03681ba6da0b
equal deleted inserted replaced
4003:b9436fe77c9e 4004:c52619c738a5
   281 
   281 
   282 class URLAttributeView(EntityView):
   282 class URLAttributeView(EntityView):
   283     """use this view for attributes whose value is an url and that you want
   283     """use this view for attributes whose value is an url and that you want
   284     to display as clickable link
   284     to display as clickable link
   285     """
   285     """
   286     id = 'urlattr'
   286     __regid__ = 'urlattr'
   287     __select__ = EntityView.__select__ & match_kwargs('rtype')
   287     __select__ = EntityView.__select__ & match_kwargs('rtype')
   288 
   288 
   289     def cell_call(self, row, col, rtype, **kwargs):
   289     def cell_call(self, row, col, rtype, **kwargs):
   290         entity = self.rset.get_entity(row, col)
   290         entity = self.rset.get_entity(row, col)
   291         url = entity.printable_value(rtype)
   291         url = entity.printable_value(rtype)