summaryrefslogtreecommitdiffstats
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
parent042cbcfbf8a025f1a17cdf5a0315188254f1c946 (diff)
downloadlasso-f84547e98d37ea11b89132b800cc151673099260.tar.gz
lasso-f84547e98d37ea11b89132b800cc151673099260.tar.xz
lasso-f84547e98d37ea11b89132b800cc151673099260.zip
Corrected SWIG Defederation binding.
Created Python high-level class for Defederation.
-rw-r--r--python/lasso.py31
-rw-r--r--swig/Lasso.i3
2 files changed, 33 insertions, 1 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
diff --git a/swig/Lasso.i b/swig/Lasso.i
index a2f082f9..e0096a3e 100644
--- a/swig/Lasso.i
+++ b/swig/Lasso.i
@@ -532,13 +532,14 @@ typedef struct {
LassoProfile parent;
%extend {
- LassoDefederation(LassoServer *server);
+ LassoDefederation(LassoServer *server, lassoProviderType provider_type);
~LassoDefederation();
}
} LassoDefederation;
/* Constructors */
+%newobject lasso_defederation_new;
LassoDefederation* lasso_defederation_new(LassoServer *server, lassoProviderType provider_type);
/* Destructor */