#NEWLINE# def get_form_list( self ) : #NEWLINE# #INDENT# '\n        This method returns a form_list based on the initial form list but\n        checks if there is a condition method/value in the condition_list.\n        If an entry exists in the condition list, it will call/read the value\n        and respect the result. (True means add the form, False means ignore\n        the form)\n\n        The form_list is always generated on the fly because condition methods\n        could use data from other (maybe previous forms).\n        ' #NEWLINE# form_list = SortedDict ( ) #NEWLINE# for ( form_key , form_class ) in six . iteritems ( self . form_list ) : #NEWLINE# #INDENT# condition = self . condition_dict . get ( form_key , True ) #NEWLINE# if callable ( form_key ) : #NEWLINE# #INDENT# condition = condition ( self ) #NEWLINE# #UNINDENT# if condition : #NEWLINE# #INDENT# form_list [ form_key ] = form_class #NEWLINE# #UNINDENT# #UNINDENT# return form_list