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/py_logout_response.c | |
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/py_logout_response.c')
-rw-r--r-- | python/protocols/py_logout_response.c | 17 |
1 files changed, 17 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))); +} |