summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorEmmanuel Raviart <eraviart@entrouvert.com>2004-08-24 15:29:56 +0000
committerEmmanuel Raviart <eraviart@entrouvert.com>2004-08-24 15:29:56 +0000
commitf84547e98d37ea11b89132b800cc151673099260 (patch)
tree8355b58da7e8fe2d93644a834f6baec955a6a8a8 /python
parent042cbcfbf8a025f1a17cdf5a0315188254f1c946 (diff)
downloadlasso-f84547e98d37ea11b89132b800cc151673099260.tar.gz
lasso-f84547e98d37ea11b89132b800cc151673099260.tar.xz
lasso-f84547e98d37ea11b89132b800cc151673099260.zip
Corrected SWIG Defederation binding.
Created Python high-level class for Defederation.
Diffstat (limited to 'python')
-rw-r--r--python/lasso.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/python/lasso.py b/python/lasso.py
index ce8ede4f..73aff94f 100644
--- a/python/lasso.py
+++ b/python/lasso.py
@@ -443,6 +443,37 @@ class _ProfileChild(object):
lassomod.lasso_profile_set_session_from_dump(self.parent, dump)
+class Defederation(_ObjectMixin, lassomod.LassoDefederation, _ProfileChild):
+ # Constants
+
+ lassomodClass = lassomod.LassoDefederation
+
+ # Methods
+
+ def build_notification_msg(self):
+ errorCode = lassomod.lasso_defederation_build_notification_msg(self)
+ if errorCode:
+ raise newError(errorCode, 'lasso_defederation_build_notification_msg')
+
+ def init_notification(self, remote_providerID = None):
+ errorCode = lassomod.lasso_defederation_init_notification(self, remote_providerID)
+ if errorCode:
+ raise newError(errorCode, 'lasso_defederation_init_notification')
+
+ def process_notification_msg(self, notification_msg, notification_method):
+ errorCode = lassomod.lasso_defederation_process_notification_msg(
+ self, notification_msg, notification_method)
+ if errorCode:
+ raise newError(errorCode, 'lasso_defederation_process_notification_msg')
+
+ def validate_notification(self):
+ errorCode = lassomod.lasso_defederation_validate_notification(self)
+ if errorCode:
+ raise newError(errorCode, 'lasso_defederation_validate_notification')
+
+registerClass(Defederation)
+
+
class Login(_ObjectMixin, lassomod.LassoLogin, _ProfileChild):
# Constants