def setResponse(self, response):
        """
        A response has been received by the gateway
        """
        self.response = response
        self.result = self.response.body

        if isinstance(self.result, remoting.ErrorFault):
            self.result.raiseException()
def setResponse ( self , response ) : self . response = response self . result = self . response . body if isinstance ( self . result , remoting . ErrorFault ) : self . result . raiseException ( )
A response has been received by the gateway