(self)
return response
Gets the raw xml instance of the current session regardless of the state that we're in
        (used for logging partially complete forms to couch when errors happen).
Gets the raw xml instance of the current session regardless of the state that we're in
        (used for logging partially complete forms to couch when errors happen).
Gets the raw xml instance of the current session regardless of the state that we re in ( used for logging partially complete forms to couch when errors happen ) .
def get_raw_instance(self):
        """
        Gets the raw xml instance of the current session regardless of the state that we're in
        (used for logging partially complete forms to couch when errors happen).
        """

        data = {
            "action": "get-instance",
            "session-id": self.session_id,
            "domain": self.domain
        }

        response = _post_data(data, self.user_id)
        if "error" in response:
            error = response["error"]
            if error == "Form session not found":
                raise InvalidSessionIdException("Invalid Session Id")
            else:
                raise TouchformsError(error)
        return response
def get_raw_instance ( self ) : data = { "action" : "get-instance" , "session-id" : self . session_id , "domain" : self . domain } response = _post_data ( data , self . user_id ) if "error" in response : error = response [ "error" ] if error == "Form session not found" : raise InvalidSessionIdException ( "Invalid Session Id" ) else : raise TouchformsError ( error ) return response