#NEWLINE# def validate_form( form = None , data = None , files = None ) : #NEWLINE# #INDENT# form . add_wooey_fields ( ) #NEWLINE# form . data = ( data if ( data is not None ) else { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# form . files = ( files if ( data is not None ) else { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# form . is_bound = True #NEWLINE# form . full_clean ( )