def destroy(self): # Break any connections involving this event channel. manager = ConnectionManager.instance() for identifier, (uses, provides) in manager.getConnections().items(): if provides.hasComponent(self): manager.breakConnection(identifier) manager.unregisterConnection(identifier) self._sandbox._removeEventChannel(self._instanceName) EventChannel.destroy(self)
def destroy(self): # Break any connections involving this event channel. self._sandbox._breakConnections(self) self._sandbox._removeEventChannel(self._instanceName) EventChannel.destroy(self)
def __init__(self, name, sandbox): EventChannel.__init__(self, name) CorbaObject.__init__(self) self._sandbox = sandbox self._instanceName = name