#NEWLINE# def GenerateDebugResponse( self ) : #NEWLINE# #INDENT# def GetEnv( env ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for key in env : #NEWLINE# #INDENT# value = env [ key ] #NEWLINE# if ( isinstance ( value , dict ) or isinstance ( value , list ) or isinstance ( value , tuple ) or isinstance ( value , str ) or isinstance ( value , unicode ) or isinstance ( value , int ) or isinstance ( value , long ) or isinstance ( value , float ) or ( value is None ) or ( value is True ) or ( value is False ) ) : #NEWLINE# #INDENT# data [ key ] = value #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# data [ key ] = 'N/A' #NEWLINE# #UNINDENT# #UNINDENT# return data #NEWLINE# #UNINDENT# info = { #NEWLINE# #INDENT# 'env' : GetEnv ( self . request . env ) , #NEWLINE# 'cookies' : self . request . cookies , #NEWLINE# 'vars' : self . request . vars , #NEWLINE# 'get_vars' : self . request . get_vars , #NEWLINE# 'post_vars' : self . request . post_vars , #NEWLINE# 'folder' : self . request . folder , #NEWLINE# 'application' : self . request . application , #NEWLINE# 'controller' : self . request . controller , #NEWLINE# 'function' : self . request . function , #NEWLINE# 'args' : self . request . args , #NEWLINE# 'extension' : self . request . extension , #NEWLINE# 'now' : str ( self . request . now ) , #NEWLINE# #UNINDENT# } #NEWLINE# return json . dumps ( info , encoding = 'utf-8' , indent = 2 , sort_keys = True )