#NEWLINE# def _get_form_class( view ) : #NEWLINE# #INDENT# if hasattr ( view , 'get_form_class' ) : #NEWLINE# #INDENT# form = view . get_form_class ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( form , 'form_class' ) : #NEWLINE# #INDENT# form = view . form_class #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# #UNINDENT# if ( form is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return '{0}.{1}' . format ( form . __module__ , form . __name__ )