#NEWLINE# def using_options_defaults_handler( entity , **kwargs ) : #NEWLINE# #INDENT# for kwarg in kwargs : #NEWLINE# #INDENT# if ( kwarg not in valid_options ) : #NEWLINE# #INDENT# raise Exception ( ( "'%s' is not a valid option for Elixir entities." % entity ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( not entity . __dict__ . get ( 'options_defaults' ) ) : #NEWLINE# #INDENT# entity . options_defaults = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# entity . options_defaults . update ( kwargs )