diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2004-05-06 14:42:04 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2004-05-06 14:42:04 +0000 |
| commit | 71ed7f38a91309cd81daca5d2c697f21a6b646b7 (patch) | |
| tree | a646595489058def5ad4a7003476a90e4338705f /python/protocols | |
| parent | d7394d35caea8fe9d256b97f194ad4e832826545 (diff) | |
| download | lasso-71ed7f38a91309cd81daca5d2c697f21a6b646b7.tar.gz lasso-71ed7f38a91309cd81daca5d2c697f21a6b646b7.tar.xz lasso-71ed7f38a91309cd81daca5d2c697f21a6b646b7.zip | |
add class method constructor new_from_query in LogoutResponse
Diffstat (limited to 'python/protocols')
| -rw-r--r-- | python/protocols/py_logout_response.c | 17 | ||||
| -rw-r--r-- | python/protocols/py_logout_response.h | 1 |
2 files changed, 18 insertions, 0 deletions
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__ */ |
