summaryrefslogtreecommitdiffstats
path: root/python/xml/py_xml.c
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-07-31 20:34:46 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-07-31 20:34:46 +0000
commit0ecf1691ba1f1590b480ee53a6af0c0dbb66424a (patch)
treeb8bee0ef463e7bdb376789c19f5d0d77f2fcb3e9 /python/xml/py_xml.c
parented561ce190fb10c4dc35e8c23c39c7292f14e5bc (diff)
downloadlasso-0ecf1691ba1f1590b480ee53a6af0c0dbb66424a.tar.gz
lasso-0ecf1691ba1f1590b480ee53a6af0c0dbb66424a.tar.xz
lasso-0ecf1691ba1f1590b480ee53a6af0c0dbb66424a.zip
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.
Diffstat (limited to 'python/xml/py_xml.c')
-rw-r--r--python/xml/py_xml.c6
1 files changed, 4 insertions, 2 deletions
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));
}