#NEWLINE# @ classmethod #NEWLINE# def register_resource_class( cls , interface_type , resource_class , python_class ) : #NEWLINE# #INDENT# if ( ( interface_type , resource_class ) in cls . _resource_classes ) : #NEWLINE# #INDENT# logger . warning ( ( '%s is already registered in the ResourceManager. Overwriting with %s' % ( ( interface_type , python_class ) , python_class ) ) ) #NEWLINE# #UNINDENT# cls . _resource_classes [ ( interface_type , resource_class ) ] = python_class