diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2004-07-20 09:25:48 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2004-07-20 09:25:48 +0000 |
| commit | cef28b22441fe49224c568432e60429185b48f5b (patch) | |
| tree | 0f957b313aa550042d9f3629486aae9e2f4a907a /python/environs | |
| parent | 2498ff0141a61c3fdf7c54b41263785ac804cd42 (diff) | |
| download | lasso-cef28b22441fe49224c568432e60429185b48f5b.tar.gz lasso-cef28b22441fe49224c568432e60429185b48f5b.tar.xz lasso-cef28b22441fe49224c568432e60429185b48f5b.zip | |
*** empty log message ***
Diffstat (limited to 'python/environs')
| -rw-r--r-- | python/environs/py_user.c | 17 | ||||
| -rw-r--r-- | python/environs/py_user.h | 2 |
2 files changed, 19 insertions, 0 deletions
diff --git a/python/environs/py_user.c b/python/environs/py_user.c index 5f219074..e182f643 100644 --- a/python/environs/py_user.c +++ b/python/environs/py_user.c @@ -62,6 +62,23 @@ PyObject *user_new_from_dump(PyObject *self, PyObject *args) { return (LassoUser_wrap(user)); } +PyObject *user_add_assertion(PyObject *self, PyObject *args){ + PyObject *user_obj; + LassoNode *assertion_node; + gchar *remote_providerID; + + if (CheckArgs(args, "OSO:user_add_assertion")) { + if(!PyArg_ParseTuple(args, (char *) "OsO:user_add_assertion", &user_obj, &remote_providerID, &assertion_node)) + return NULL; + } + else return NULL; + + lasso_user_add_assertion(LassoUser_get(user_obj), remote_providerID, assertion_node); + + Py_INCREF(Py_None); + return (Py_None); +} + PyObject *user_destroy(PyObject *self, PyObject *args) { PyObject *user_obj; diff --git a/python/environs/py_user.h b/python/environs/py_user.h index 128c9e21..fa752e06 100644 --- a/python/environs/py_user.h +++ b/python/environs/py_user.h @@ -38,6 +38,8 @@ PyObject *LassoUser_wrap(LassoUser *user); PyObject *user_new(PyObject *self, PyObject *args); PyObject *user_new_from_dump(PyObject *self, PyObject *args); + +PyObject *user_add_assertion(PyObject *self, PyObject *args); PyObject *user_destroy(PyObject *self, PyObject *args); PyObject *user_dump(PyObject *self, PyObject *args); PyObject *user_get_assertion(PyObject *self, PyObject *args); |
