#NEWLINE# def request_data( self , merge = True ) : #NEWLINE# #INDENT# 'Return current request data (POST or GET)' #NEWLINE# if ( self . request . method == 'POST' ) : #NEWLINE# #INDENT# if merge : #NEWLINE# #INDENT# data = self . request . POST . copy ( ) #NEWLINE# if ( not isinstance ( self . request . GET , NoVars ) ) : #NEWLINE# #INDENT# data . update ( self . request . GET ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# data = self . request . POST #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# data = self . request . GET #NEWLINE# #UNINDENT# return data