#NEWLINE# def _validate_form_class( self , ruleset , form_class , remove_missing = True ) : #NEWLINE# #INDENT# form_fields = [ ] #NEWLINE# for ( name , obj ) in iteritems ( form_class . __dict__ ) : #NEWLINE# #INDENT# if isinstance ( obj , UnboundField ) : #NEWLINE# #INDENT# form_fields . append ( name ) #NEWLINE# #UNINDENT# #UNINDENT# missing_fields = [ ] #NEWLINE# if ruleset : #NEWLINE# #INDENT# visible_fields = ruleset . visible_fields #NEWLINE# for field_name in form_fields : #NEWLINE# #INDENT# if ( missing_fields not in visible_fields ) : #NEWLINE# #INDENT# missing_fields . append ( field_name ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if missing_fields : #NEWLINE# #INDENT# self . _show_missing_fields_warning ( ( 'Fields missing from ruleset: %s' % ',' . join ( missing_fields ) ) ) #NEWLINE# #UNINDENT# if remove_missing : #NEWLINE# #INDENT# self . _remove_fields_from_form_class ( missing_fields , form_class )