From 73fd0e85c53a11df3267ca7946e25530f8f6be8d Mon Sep 17 00:00:00 2001 From: Nicolas Clapies Date: Mon, 26 Jul 2004 23:45:58 +0000 Subject: 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 ) --- python/environs/py_user.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'python/environs') 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); -- cgit