summaryrefslogtreecommitdiffstats
path: root/python/lasso.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/lasso.py')
-rw-r--r--python/lasso.py60
1 files changed, 53 insertions, 7 deletions
diff --git a/python/lasso.py b/python/lasso.py
index 664a345d..9853fd6a 100644
--- a/python/lasso.py
+++ b/python/lasso.py
@@ -976,22 +976,24 @@ class Logout:
def __isprivate(self, name):
return name == '_o'
+ def __init__(self, _obj):
+ """
+ The constructor
+ """
+ self._o = _obj
+
def __getattr__(self, name):
if self.__isprivate(name):
return self.__dict__[name]
if name[:2] == "__" and name[-2:] == "__" and name != "__members__":
raise AttributeError, name
- ret = lassomod.login_getattr(self, name)
+ ret = lassomod.logout_getattr(self, name)
if ret is None:
raise AttributeError, name
+ if name == "user":
+ ret = User(_obj=ret)
return ret
- def __init__(self, _obj):
- """
- The constructor
- """
- self._o = _obj
-
def new(cls, server, user, provider_type):
obj = lassomod.logout_new(server, user, provider_type)
return Logout(obj)
@@ -1014,3 +1016,47 @@ class Logout:
def process_response_msg(self, response_msg, response_method):
return lassomod.logout_process_response_msg(self, response_msg, response_method);
+
+class FederationTermination:
+ """\brief Short desc
+
+ Long desc
+ """
+
+ def __isprivate(self, name):
+ return name == '_o'
+
+ def __init__(self, _obj):
+ """
+ The constructor
+ """
+ self._o = _obj
+
+ def __getattr__(self, name):
+ if self.__isprivate(name):
+ return self.__dict__[name]
+ if name[:2] == "__" and name[-2:] == "__" and name != "__members__":
+ raise AttributeError, name
+ ret = lassomod.federation_termination_getattr(self, name)
+ if ret is None:
+ raise AttributeError, name
+ if name == "user":
+ ret = User(_obj=ret)
+ return ret
+
+ def new(cls, server, user, provider_type):
+ obj = lassomod.federation_termination_new(server, user, provider_type)
+ return FederationTermination(obj)
+ new = classmethod(new)
+
+ def build_notification_msg(self):
+ return lassomod.federation_termination_build_notification_msg(self)
+
+ def destroy(self):
+ pass
+
+ def init_notification(self, remote_providerID):
+ return lassomod.federation_termination_init_notification(self, remote_providerID);
+
+ def process_notification_msg(self, notification_msg, notification_method):
+ return lassomod.federation_termination_process_notification_msg(self, notification_msg, notification_method);