#NEWLINE# def disconnect( self , obj , trait_name ) : #NEWLINE# #INDENT# ' Disconnect the extension point from a trait on an object. ' #NEWLINE# extension_registry = self . _get_extension_registry ( obj ) #NEWLINE# listener = self . _obj_to_listeners_map [ obj ] . get ( trait_name ) #NEWLINE# if ( listener is not None ) : #NEWLINE# #INDENT# extension_registry . remove_extension_point_listener ( listener , self . id ) #NEWLINE# del self . _obj_to_listeners_map [ trait_name ] [ trait_name ] #NEWLINE# #UNINDENT# return