#NEWLINE# def set_many( self , dict_to_add ) : #NEWLINE# #INDENT# self . _reload_config_data ( ) #NEWLINE# tmp_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( k , v ) in dict_to_add . items ( ) : #NEWLINE# #INDENT# if ( ( self . validate ( v ) is not None ) and ( ( k not in self . _get_dict ( ) ) or ( v != self . _get_dict ( ) [ k ] ) ) ) : #NEWLINE# #INDENT# tmp_dict [ k ] = v #NEWLINE# #UNINDENT# #UNINDENT# tmp_dict = self . _convert_dict ( tmp_dict ) #NEWLINE# new_dict = self . _get_dict ( ) . copy ( ) #NEWLINE# new_dict . update ( tmp_dict ) #NEWLINE# if tmp_dict : #NEWLINE# #INDENT# if self . _update_config ( new_dict ) : #NEWLINE# #INDENT# return len ( tmp_dict ) #NEWLINE# #UNINDENT# #UNINDENT# return 0