From 71ed7f38a91309cd81daca5d2c697f21a6b646b7 Mon Sep 17 00:00:00 2001 From: Nicolas Clapies Date: Thu, 6 May 2004 14:42:04 +0000 Subject: add class method constructor new_from_query in LogoutResponse --- python/protocols/py_logout_response.c | 17 +++++++++++++++++ python/protocols/py_logout_response.h | 1 + 2 files changed, 18 insertions(+) (limited to 'python/protocols') diff --git a/python/protocols/py_logout_response.c b/python/protocols/py_logout_response.c index 32a8a87d..34f535cd 100644 --- a/python/protocols/py_logout_response.c +++ b/python/protocols/py_logout_response.c @@ -118,3 +118,20 @@ PyObject *logout_response_new_from_request_query(PyObject *self, PyObject *args) return (LassoLogoutResponse_wrap(LASSO_LOGOUT_RESPONSE(response))); } + +PyObject *logout_response_new_from_query(PyObject *self, PyObject *args) { + const xmlChar *query; + + LassoNode *response = NULL; + + if (CheckArgs(args, "S:logout_response_new_from_request_query")) { + if(!PyArg_ParseTuple(args, (char *) "s:logout_response_new_from_request_query", + &query)) + return NULL; + } + else return NULL; + + response = lasso_logout_response_new_from_query(query); + + return (LassoLogoutResponse_wrap(LASSO_LOGOUT_RESPONSE(response))); +} diff --git a/python/protocols/py_logout_response.h b/python/protocols/py_logout_response.h index 2994444d..04d1d22e 100644 --- a/python/protocols/py_logout_response.h +++ b/python/protocols/py_logout_response.h @@ -39,5 +39,6 @@ PyObject *logout_response_new_from_request_soap(PyObject *self, PyObject *args); PyObject *logout_response_new_from_soap(PyObject *self, PyObject *args); PyObject *logout_response_new_from_dump(PyObject *self, PyObject *args); PyObject *logout_response_new_from_request_query(PyObject *self, PyObject *args); +PyObject *logout_response_new_from_query(PyObject *self, PyObject *args); #endif /* __PYLASSO_PY_LOGOUT_RESPONSE_H__ */ -- cgit