diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-04-23 07:36:50 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-04-23 07:36:50 +0000 |
commit | 5439624bd9167dbb880ea4a75d91677d20a6ebe3 (patch) | |
tree | 79b6282ac4c7bff0bca23df3d3b5e99285183717 /python/libxml.py | |
parent | 45269b8bb9b8876b82dc4080b199ad837e3842d6 (diff) | |
download | libxml2-5439624bd9167dbb880ea4a75d91677d20a6ebe3.tar.gz |
applied patch from Brent M Hendricks adding binding for xmlCatalogAddLocal
* python/libxml.c python/libxml.py: applied patch from
Brent M Hendricks adding binding for xmlCatalogAddLocal
Daniel
Diffstat (limited to 'python/libxml.py')
-rw-r--r-- | python/libxml.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/libxml.py b/python/libxml.py index 8ffa383f..ba747361 100644 --- a/python/libxml.py +++ b/python/libxml.py @@ -511,6 +511,11 @@ class parserCtxtCore: or (None,None).""" return libxml2mod.xmlParserCtxtGetErrorHandler(self._o) + def addLocalCatalog(self, uri): + """Register a local catalog with the parser""" + return libxml2mod.addLocalCatalog(self._o, uri) + + def _xmlTextReaderErrorFunc((f,arg),msg,severity,locator): """Intermediate callback to wrap the locator""" return f(arg,msg,severity,xmlTextReaderLocator(locator)) |