#NEWLINE# def _bless( self , target ) : #NEWLINE# #INDENT# "Will 'bless' an object with any API calls matching its class" #NEWLINE# if ( target . __class__ in self . _model_apis ) : #NEWLINE# #INDENT# for ( method , method_spec ) in self . _model_apis [ target . __class__ ] . iteritems ( ) : #NEWLINE# #INDENT# api_object = ApiMethod ( self . _connection , self , method_spec , target ) #NEWLINE# setattr ( target , method , api_object ) #NEWLINE# #UNINDENT# #UNINDENT# return target