From 8c0b0cb66780eb70c8f2cc0331bdaf4f78c8fc48 Mon Sep 17 00:00:00 2001 From: Nicolas Clapies Date: Mon, 19 Jul 2004 12:25:35 +0000 Subject: update federation termination --- python/lasso.py | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 53 insertions(+), 7 deletions(-) (limited to 'python/lasso.py') 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); -- cgit