summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorEmmanuel Raviart <eraviart@entrouvert.com>2004-08-28 07:31:57 +0000
committerEmmanuel Raviart <eraviart@entrouvert.com>2004-08-28 07:31:57 +0000
commitc2c31c20d00094f30f8e38ec7ac30c56bc1d8a2a (patch)
tree9bd8c6163c8aaeee700333f25e7176bd6688b50a /python
parente7e4d55ce5e3043b693296d9ce29ecaf8fdc80cb (diff)
downloadlasso-c2c31c20d00094f30f8e38ec7ac30c56bc1d8a2a.tar.gz
lasso-c2c31c20d00094f30f8e38ec7ac30c56bc1d8a2a.tar.xz
lasso-c2c31c20d00094f30f8e38ec7ac30c56bc1d8a2a.zip
Converted SWIG Server into a high-level class with new_from_dump static
method and default value for some arguments.
Diffstat (limited to 'python')
-rw-r--r--python/lasso.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/python/lasso.py b/python/lasso.py
index c4987f40..d1c59a68 100644
--- a/python/lasso.py
+++ b/python/lasso.py
@@ -242,31 +242,6 @@ class Server(_ObjectMixin, lassomod.LassoServer):
lassomodClass = lassomod.LassoServer
- # Constructors
-
- def __init__(self, metadata = None, public_key = None, private_key = None, certificate = None,
- signature_method = signatureMethodRsaSha1):
- super(Server, self).__init__(
- metadata, public_key, private_key, certificate, signature_method)
-
- def new_from_dump(cls, dump):
- self = lassomod.lasso_server_new_from_dump(dump)
- if self is None:
- raise ErrorInstanceCreationFailed('lasso_server_new_from_dump')
- _setRegisteredClass(self)
- return self
- new_from_dump = classmethod(new_from_dump)
-
- # Methods
-
- def add_provider(self, metadata, public_key = None, certificate = None):
- errorCode = lassomod.lasso_server_add_provider(self, metadata, public_key, certificate)
- if errorCode:
- raise newError(errorCode, 'lasso_server_add_provider')
-
- def dump(self):
- return lassomod.lasso_server_dump(self)
-
registerClass(Server)