Example #1
0
 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 ''
Example #2
0
 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 ''
Example #3
0
 def format(self, item):
     return HTML.img(src=item.jsondata['thumbnail'])
Example #4
0
 def format(self, item):
     item = self.get_obj(item)
     if item.thumbnail:
         return HTML.img(src=self.dt.req.file_url(item.thumbnail))
     return ''
Example #5
0
 def format(self, item):
     return HTML.img(src=item.jsondata['thumbnail'])