#NEWLINE# def build_form( Form , _request , GET = False , * args , **kwargs ) : #NEWLINE# #INDENT# '\n    Shorcut for building the form instance of given form class\n    ' #NEWLINE# if ( ( not GET ) and ( 'POST' == _request . method ) ) : #NEWLINE# #INDENT# form = Form ( _request . POST , _request . FILES , * args , ** kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( GET and ( 'GET' == _request . method ) ) : #NEWLINE# #INDENT# form = Form ( _request . GET , _request . FILES , * args , ** kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# form = Form ( * args , ** kwargs ) #NEWLINE# #UNINDENT# #UNINDENT# return form