diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2004-07-26 23:45:58 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2004-07-26 23:45:58 +0000 |
| commit | 73fd0e85c53a11df3267ca7946e25530f8f6be8d (patch) | |
| tree | 33e4661f6d27366b62d9a25ee2f4d70d56062b13 /python/environs | |
| parent | db051a1a73684708d47ede1acefdaeff0cf99120 (diff) | |
| download | lasso-73fd0e85c53a11df3267ca7946e25530f8f6be8d.tar.gz lasso-73fd0e85c53a11df3267ca7946e25530f8f6be8d.tar.xz lasso-73fd0e85c53a11df3267ca7946e25530f8f6be8d.zip | |
fix a bug in python binding user_add_assertion : give obj of python assertion, add a copy of assertion in lasso_add_assertion ( not sure, but assertion should be copied )
Diffstat (limited to 'python/environs')
| -rw-r--r-- | python/environs/py_user.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/environs/py_user.c b/python/environs/py_user.c index 9fdd71db..10a50513 100644 --- a/python/environs/py_user.c +++ b/python/environs/py_user.c @@ -29,6 +29,8 @@ #include "py_user.h" +#include "../protocols/elements/py_assertion.h" + PyObject *LassoUser_wrap(LassoUser *user) { PyObject *ret; @@ -73,7 +75,7 @@ PyObject *user_add_assertion(PyObject *self, PyObject *args){ } else return NULL; - lasso_user_add_assertion(LassoUser_get(user_obj), remote_providerID, assertion_node); + lasso_user_add_assertion(LassoUser_get(user_obj), remote_providerID, LassoAssertion_get(assertion_node)); Py_INCREF(Py_None); return (Py_None); @@ -88,7 +90,7 @@ PyObject *user_destroy(PyObject *self, PyObject *args) { return NULL; } else return NULL; - + lasso_user_destroy(LassoUser_get(user_obj)); Py_INCREF(Py_None); |
