def doc_image_represent(filename):
 if (not filename):
  return current.messages['NONE']
 return DIV(A(IMG(_src=URL(c='default', f='download', args=filename), _height=40), _class='zoom', _href=URL(c='default', f='download', args=filename)))

def doc_image_represent ( filename ) : if ( not filename ) : return current . messages [ 'NONE' ] return DIV ( A ( IMG ( _src = URL ( c = 'default' , f = 'download' , args = filename ) , _height = 40 ) , _class = 'zoom' , _href = URL ( c = 'default' , f = 'download' , args = filename ) ) )
represent an image as a clickable thumbnail .