summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-02-02 23:18:22 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-02-02 23:18:22 +0000
commitcfb0546244beb0b3ae297f8dee0fa9bfdc2e1115 (patch)
treea030db3a6189ac878fdbbd3f3ca0365d9789342e
parent5d81903b06418c7d8cc72cf9add81c4026a2f3bc (diff)
downloadlibxml2-cfb0546244beb0b3ae297f8dee0fa9bfdc2e1115.tar.gz
fixed a small bug a bit of cleanup. Daniel
* python/Makefile.am python/TODO python/libxml.py: fixed a small bug a bit of cleanup. Daniel
-rw-r--r--ChangeLog5
-rw-r--r--python/Makefile.am5
-rw-r--r--python/TODO2
-rw-r--r--python/libxml.py10
4 files changed, 20 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 43d7aa38..a3c8b1d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Feb 3 00:17:26 CET 2002 Daniel Veillard <daniel@veillard.com>
+
+ * python/Makefile.am python/TODO python/libxml.py: fixed a small
+ bug a bit of cleanup.
+
Sat Feb 2 22:47:10 CET 2002 Daniel Veillard <daniel@veillard.com>
* python/Makefile.am python/libxml.c python/libxml2-python-api.xml
diff --git a/python/Makefile.am b/python/Makefile.am
index 0da7d796..a76492af 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -44,6 +44,11 @@ GENERATED= $(srcdir)/libxml2class.py \
$(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC)
cd $(srcdir) && $(PYTHON) $(GENERATE)
+dummy:
+
+tests: dummy
+ cd tests && $(MAKE) tests
+
clean:
rm -f $(GENERATED) *.o _libxml.so *.pyc libxml2.py
diff --git a/python/TODO b/python/TODO
index d8e39b14..40fadf9a 100644
--- a/python/TODO
+++ b/python/TODO
@@ -5,7 +5,6 @@
Things to do:
-------------
-- handling of node.content
- SAX interfaces
- memory debug interfaces
- enums -> libxml.py
@@ -41,5 +40,6 @@ Done:
Done, a bit ugly by running new makes in %install for each level
found.
- error redirections and preformat
+- handling of node.content
Daniel Veillard
diff --git a/python/libxml.py b/python/libxml.py
index 4c8c51c7..6f5197b2 100644
--- a/python/libxml.py
+++ b/python/libxml.py
@@ -45,7 +45,7 @@ class xmlCore:
return None
return xmlNode(_obj=ret)
elif attr == "content":
- return self.content()
+ return _libxml.xmlNodeGetContent(self._o)
elif attr == "name":
return _libxml.name(self._o)
elif attr == "type":
@@ -148,6 +148,14 @@ def registerXPathFunction(ctxt, name, ns_uri, f):
ret = _libxml.xmlRegisterXPathFunction(ctxt, name, ns_uri, f)
#
+# A parser context
+#
+class parserCtxt:
+ def __init__(self, _obj=None):
+ self._o = _obj
+
+
+#
# Everything below this point is automatically generated
#