txampext/jsondialect.py
def _getCommandAndResponder(self, commandName):
        """Gets the command class and matching responder function for the
        given command name.

        """
        # DISGUSTING IMPLEMENTATION DETAIL EXPLOITING HACK
        locator = self._remote.boxReceiver.locator
        responder = locator.locateResponder(commandName)
        responderFunction = responder.func_closure[1].cell_contents
        command = responder.func_closure[2].cell_contents
        return command, responderFunction
def _getCommandAndResponder(self, commandName):
        """Gets the command class and matching responder function for the
        given command name.

        """
        # DISGUSTING IMPLEMENTATION DETAIL EXPLOITING HACK
        locator = self._remote.boxReceiver.locator
        responder = locator.locateResponder(commandName)
        responderFunction = responder.func_closure[1].cell_contents
        command = responder.func_closure[2].cell_contents
        return command, responderFunction
Gets the command class and matching responder function for the
        given command name.