def format(self, item): taxon = self.get_obj(item) thumbnail = taxon.image_url('thumbnail', tag='thumbnail1') \ or taxon.image_url('thumbnail', index=0) if thumbnail: return HTML.img(src=thumbnail) return ''
def format(self, item): return HTML.img(src=item.jsondata['thumbnail'])
def format(self, item): item = self.get_obj(item) if item.thumbnail: return HTML.img(src=self.dt.req.file_url(item.thumbnail)) return ''