def gauge():
 def prep(r):
  if r.interactive:
   pass
  elif (r.representation == 'plain'):
   r.table.image_url.readable = False
  return True
 s3.prep = prep
 def postp(r, output):
  if r.interactive:
   pass
  elif (r.representation == 'plain'):
   image_url = r.record.image_url
   if image_url:
    output['item'].append(IMG(_src=image_url, _width=400, _height=310))
  return output
 s3.postp = postp
 output = s3_rest_controller()
 return output

def gauge ( ) : def prep ( r ) : if r . interactive : pass elif ( r . representation == 'plain' ) : r . table . image_url . readable = False return True s3 . prep = prep def postp ( r , output ) : if r . interactive : pass elif ( r . representation == 'plain' ) : image_url = r . record . image_url if image_url : output [ 'item' ] . append ( IMG ( _src = image_url , _width = 400 , _height = 310 ) ) return output s3 . postp = postp output = s3_rest_controller ( ) return output
flood gauges .