From 0ecf1691ba1f1590b480ee53a6af0c0dbb66424a Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Sat, 31 Jul 2004 20:34:46 +0000 Subject: Added a new argument 'err' in 4 methods of the LassoNode class: lasso_node_get_attr lasso_node_get_child lasso_node_get_child_content lasso_node_get_content for reporting errors. --- python/xml/py_xml.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/xml/py_xml.c b/python/xml/py_xml.c index 814c2304..83636187 100644 --- a/python/xml/py_xml.c +++ b/python/xml/py_xml.c @@ -171,7 +171,8 @@ PyObject *node_get_child(PyObject *self, PyObject *args) { } else return NULL; - ret = lasso_node_get_child(LassoNode_get(node_obj), name, href); + ret = lasso_node_get_child(LassoNode_get(node_obj), name, href, NULL); + /* FIXME generate an exception here */ return (LassoNode_wrap(ret)); } @@ -187,7 +188,8 @@ PyObject *node_get_content(PyObject *self, PyObject *args) { } else return NULL; - ret = lasso_node_get_content(LassoNode_get(node_obj)); + ret = lasso_node_get_content(LassoNode_get(node_obj), NULL); + /* FIXME generate an exception here */ return (xmlCharPtr_wrap(ret)); } -- cgit