equal
deleted
inserted
replaced
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) |