diff options
| author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-08-09 15:41:13 +0000 |
|---|---|---|
| committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-08-09 15:41:13 +0000 |
| commit | d4d3338c02799b415e83622747237ce53737bd3d (patch) | |
| tree | d8f03d975ff3550d14542baba6e1ab882e397486 /python | |
| parent | 991293bb74d5d248ff853bf4ac43ef9a6933a2ce (diff) | |
| download | lasso-d4d3338c02799b415e83622747237ce53737bd3d.tar.gz lasso-d4d3338c02799b415e83622747237ce53737bd3d.tar.xz lasso-d4d3338c02799b415e83622747237ce53737bd3d.zip | |
Updated server
Diffstat (limited to 'python')
| -rw-r--r-- | python/environs/py_server.c | 4 | ||||
| -rw-r--r-- | python/lasso.py | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/python/environs/py_server.c b/python/environs/py_server.c index 4a0c0449..a5128d5b 100644 --- a/python/environs/py_server.c +++ b/python/environs/py_server.c @@ -49,8 +49,8 @@ PyObject *server_new(PyObject *self, PyObject *args) { gchar *certificate = NULL; guint signature_method = 0; - if (CheckArgs(args, "Ssssi:server_new")) { - if(!PyArg_ParseTuple(args, (char *) "szzz|i:server_new", + if (CheckArgs(args, "ssssi:server_new")) { + if(!PyArg_ParseTuple(args, (char *) "zzzz|i:server_new", &metadata, &public_key, &private_key, &certificate, &signature_method)) return NULL; diff --git a/python/lasso.py b/python/lasso.py index 3e7b12d4..fb60fe96 100644 --- a/python/lasso.py +++ b/python/lasso.py @@ -925,7 +925,8 @@ class Server: """ self._o = _obj - def new(cls, metadata, public_key, private_key, certificate, signature_method): + def new(cls, metadata=None, public_key=None, private_key=None, + certificate=None, signature_method=0): obj = lassomod.server_new(metadata, public_key, private_key, certificate, signature_method) if obj is None: |
