diff options
| author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-07-31 08:02:48 +0000 |
|---|---|---|
| committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-07-31 08:02:48 +0000 |
| commit | d48eb0706db350e03aa9e67ab36a157faa611bb0 (patch) | |
| tree | 00d1779f37c9c8228b8ca2c7e75c6c4012a87b7c /python/environs | |
| parent | 0b25994172d6bc574ea3da5a473ff2bba8a23d94 (diff) | |
| download | lasso-d48eb0706db350e03aa9e67ab36a157faa611bb0.tar.gz lasso-d48eb0706db350e03aa9e67ab36a157faa611bb0.tar.xz lasso-d48eb0706db350e03aa9e67ab36a157faa611bb0.zip | |
Python login_tests now works again, although there remains a lasso-CRITICAL
caused by idpLoginContext.get_identity() (file login_tests.py, line 120):
(process:5228): lasso-CRITICAL **: file xml.c: line 64 (lasso_node_copy):
assertion LASSO_IS_NODE(node)' failed
ERROR
Diffstat (limited to 'python/environs')
| -rw-r--r-- | python/environs/py_logout.c | 22 | ||||
| -rw-r--r-- | python/environs/py_session.h | 4 |
2 files changed, 14 insertions, 12 deletions
diff --git a/python/environs/py_logout.c b/python/environs/py_logout.c index eee4546f..3625f287 100644 --- a/python/environs/py_logout.c +++ b/python/environs/py_logout.c @@ -57,22 +57,24 @@ PyObject *logout_getattr(PyObject *self, PyObject *args) { logout = LassoLogout_get(logout_obj); if (!strcmp(attr, "__members__")) - return Py_BuildValue("[ssss]", "user", "msg_url", "msg_body", - "nameIdentifier", "msg_relayState"); + return Py_BuildValue("[ssssssss]", "identity", "session", "request", "response", + "msg_url", "msg_body", "nameIdentifier", "msg_relayState"); + if (!strcmp(attr, "identity")) + return (LassoIdentity_wrap(LASSO_PROFILE(logout)->identity)); + if (!strcmp(attr, "session")) + return (LassoSession_wrap(LASSO_PROFILE(logout)->session)); + if (!strcmp(attr, "request")) + return (LassoNode_wrap(LASSO_PROFILE(logout)->request)); + if (!strcmp(attr, "response")) + return (LassoNode_wrap(LASSO_PROFILE(logout)->response)); if (!strcmp(attr, "msg_url")) return (charPtrConst_wrap(LASSO_PROFILE(logout)->msg_url)); if (!strcmp(attr, "msg_body")) return (charPtrConst_wrap(LASSO_PROFILE(logout)->msg_body)); - if (!strcmp(attr, "msg_relayState")) - return (charPtrConst_wrap(LASSO_PROFILE(logout)->msg_relayState)); if (!strcmp(attr, "nameIdentifier")) return (charPtrConst_wrap(LASSO_PROFILE(logout)->nameIdentifier)); - if (!strcmp(attr, "request")) - return (LassoNode_wrap(LASSO_PROFILE(logout)->request)); - if (!strcmp(attr, "response")) - return (LassoNode_wrap(LASSO_PROFILE(logout)->response)); - if (!strcmp(attr, "identity")) - return (LassoIdentity_wrap(LASSO_PROFILE(logout)->identity)); + if (!strcmp(attr, "msg_relayState")) + return (charPtrConst_wrap(LASSO_PROFILE(logout)->msg_relayState)); Py_INCREF(Py_None); return (Py_None); diff --git a/python/environs/py_session.h b/python/environs/py_session.h index 9e823fd6..182dc869 100644 --- a/python/environs/py_session.h +++ b/python/environs/py_session.h @@ -23,8 +23,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef __PYLASSO_PY_USER_H__ -#define __PYLASSO_PY_USER_H__ +#ifndef __PYLASSO_PY_SESSION_H__ +#define __PYLASSO_PY_SESSION_H__ #include <lasso/environs/session.h> |
