def peek():
 app = get_app(request.vars.app)
 filename = '/'.join(request.args)
 if request.vars.app:
  path = abspath(filename)
 else:
  path = apath(filename, r=request)
 try:
  data = safe_read(path).replace('\r', '')
 except IOError:
  session.flash = T('file does not exist')
  redirect(URL('site'))
 extension = filename[(filename.rfind('.') + 1):].lower()
 return dict(app=app, filename=filename, data=data, extension=extension)

def peek ( ) : app = get_app ( request . vars . app ) filename = '/' . join ( request . args ) if request . vars . app : path = abspath ( filename ) else : path = apath ( filename , r = request ) try : data = safe_read ( path ) . replace ( '\r' , '' ) except IOError : session . flash = T ( 'file does not exist' ) redirect ( URL ( 'site' ) ) extension = filename [ ( filename . rfind ( '.' ) + 1 ) : ] . lower ( ) return dict ( app = app , filename = filename , data = data , extension = extension )
visualize object code .