Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Creates a string message containing the state data which can be parsed
by parseResponse()-method afterwards.

@param state:   state object (ftw.publisher.core.states.CommunicationState)
@type state:    ftw.publisher.core.states.CommunicationState
@return:        String representation of the state

        def createResponse(state):
    """
    Creates a string message containing the state data which can be parsed
    by parseResponse()-method afterwards.

    @param state:   state object (ftw.publisher.core.states.CommunicationState)
    @type state:    ftw.publisher.core.states.CommunicationState
    @return:        String representation of the state
    """

    if not isinstance(state, states.CommunicationState):
        raise TypeError('Expected CommunicationState instance')
    return state.toString()
        


src/f/t/ftw.publisher.receiver-2.0.2/ftw/publisher/receiver/browser/views.py   ftw.publisher.receiver(Download)
            self.logger.error('request failed: %s' % (state.toString()))
        # get the string representation of the CommunicationState
        resp = communication.createResponse(state)
        try:
            # if a exception was thrown, we add the traceback to the response