#NEWLINE# def update( self , fields = None , **kwargs ) : #NEWLINE# #INDENT# if kwargs : #NEWLINE# #INDENT# if ( not is_iter ( fields ) ) : #NEWLINE# #INDENT# fields = [ fields ] #NEWLINE# #UNINDENT# for field in ( set ( fields ) - set ( self . fields ) ) : #NEWLINE# #INDENT# self . fields [ field ] = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if kwargs : #NEWLINE# #INDENT# fields = [ None ] #NEWLINE# #UNINDENT# #UNINDENT# checked_kwargs = self . check_opts ( kwargs ) #NEWLINE# for ( k , v ) in list ( checked_kwargs . items ( ) ) : #NEWLINE# #INDENT# for field in fields : #NEWLINE# #INDENT# self . fields [ field ] [ k ] = v