summaryrefslogtreecommitdiffstats
path: root/python/lasso.py
diff options
context:
space:
mode:
authorEmmanuel Raviart <eraviart@entrouvert.com>2004-07-31 08:02:48 +0000
committerEmmanuel Raviart <eraviart@entrouvert.com>2004-07-31 08:02:48 +0000
commitd48eb0706db350e03aa9e67ab36a157faa611bb0 (patch)
tree00d1779f37c9c8228b8ca2c7e75c6c4012a87b7c /python/lasso.py
parent0b25994172d6bc574ea3da5a473ff2bba8a23d94 (diff)
downloadlasso-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/lasso.py')
-rw-r--r--python/lasso.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/python/lasso.py b/python/lasso.py
index f4cff357..3002f969 100644
--- a/python/lasso.py
+++ b/python/lasso.py
@@ -1039,11 +1039,13 @@ class Logout(Profile):
ret = lassomod.logout_getattr(self, name)
if ret is None:
return None
- if name == "user":
- ret = User(_obj=ret)
- if name == "request":
+ elif name == "identity":
+ ret= Identity(_obj=ret)
+ elif name == "session":
+ ret= Session(_obj=ret)
+ elif name == "request":
ret = LogoutRequest(_obj=ret)
- if name == "response":
+ elif name == "response":
ret = LogoutResponse(_obj=ret)
return ret
@@ -1098,8 +1100,10 @@ class FederationTermination(Profile):
raise AttributeError, name
ret = lassomod.federation_termination_getattr(self, name)
if ret:
- if name=="user":
- ret = User(_obj=ret)
+ if name == "identity":
+ ret= Identity(_obj=ret)
+ elif name == "session":
+ ret= Session(_obj=ret)
return ret
def new(cls, server, provider_type):