summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-05-25 13:39:40 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-05-25 13:39:40 +0000
commitb563fb3816eeb7eb560337a15e890b648c25e0d8 (patch)
treec9f4f2e2e20d4dd733cc625ceab940f66ccefc4c /python
parent0fad7d9ace52ae5d2630c76eb4da2896b0b81548 (diff)
downloadlasso-b563fb3816eeb7eb560337a15e890b648c25e0d8.tar.gz
lasso-b563fb3816eeb7eb560337a15e890b648c25e0d8.tar.xz
lasso-b563fb3816eeb7eb560337a15e890b648c25e0d8.zip
Modified method get_child()
Diffstat (limited to 'python')
-rw-r--r--python/lasso.py4
-rw-r--r--python/xml/py_xml.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/python/lasso.py b/python/lasso.py
index 666065ce..19db7828 100644
--- a/python/lasso.py
+++ b/python/lasso.py
@@ -82,8 +82,8 @@ class Node:
def get_attr_value(self, name):
return lassomod.node_get_attr_value(self, name)
- def get_child(self, name):
- obj = lassomod.node_get_child(self, name)
+ def get_child(self, name, href=None):
+ obj = lassomod.node_get_child(self, name, href)
if obj:
return Node(_obj=obj)
return None
diff --git a/python/xml/py_xml.c b/python/xml/py_xml.c
index 4085ccaf..3a64a13e 100644
--- a/python/xml/py_xml.c
+++ b/python/xml/py_xml.c
@@ -160,17 +160,17 @@ PyObject *node_get_attr_value(PyObject *self, PyObject *args) {
PyObject *node_get_child(PyObject *self, PyObject *args) {
PyObject *node_obj;
- const xmlChar *name;
+ const xmlChar *name, *href;
LassoNode *ret;
- if (CheckArgs(args, "OS:node_get_child")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:node_get_child",
- &node_obj, &name))
+ if (CheckArgs(args, "OSs:node_get_child")) {
+ if(!PyArg_ParseTuple(args, (char *) "Osz:node_get_child",
+ &node_obj, &name, &href))
return NULL;
}
else return NULL;
- ret = lasso_node_get_child(LassoNode_get(node_obj), name);
+ ret = lasso_node_get_child(LassoNode_get(node_obj), name, href);
return (LassoNode_wrap(ret));
}