(self, f)
return fr
Loads a flow, and returns a new flow object.
Loads a flow, and returns a new flow object.
Loads a flow and returns a new flow object .
def load_flow(self, f):
        """
            Loads a flow, and returns a new flow object.
        """
        if f.request:
            f.request.reply = controller.DummyReply()
            fr = self.handle_request(f.request)
        if f.response:
            f.response.reply = controller.DummyReply()
            self.handle_response(f.response)
        if f.error:
            f.error.reply = controller.DummyReply()
            self.handle_error(f.error)
        return fr
def load_flow ( self , f ) : if f . request : f . request . reply = controller . DummyReply ( ) fr = self . handle_request ( f . request ) if f . response : f . response . reply = controller . DummyReply ( ) self . handle_response ( f . response ) if f . error : f . error . reply = controller . DummyReply ( ) self . handle_error ( f . error ) return fr