#NEWLINE# def get_object( self , _params = None , **kwargs ) : #NEWLINE# #INDENT# check_flag ( kwargs , 'declare' ) #NEWLINE# Object = get_class ( self . dtd , 'Object' , ( ObjectMixin , self . dtd . Object ) ) #NEWLINE# obj = Object ( ** kwargs ) #NEWLINE# obj . _init ( self . dtd ) #NEWLINE# if _params : #NEWLINE# #INDENT# if isinstance ( _params , dict ) : #NEWLINE# #INDENT# for ( name , value ) in _params . items ( ) : #NEWLINE# #INDENT# obj . add_param ( name , value ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( _params , ( list , tuple ) ) : #NEWLINE# #INDENT# for ( name , value ) in _params : #NEWLINE# #INDENT# obj . add_param ( name , value ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return obj