python/generator.py


Log

Author Commit Date CI Message
Daniel Veillard 259f0dfa 2004-08-18T09:13:18 Applied patch from Torkel Lyng to add Schemas support to the Python * xmlschemas.c include/libxml/xmlschemas.h python/generator.py python/libxml.c python/libxml_wrap.h python/types.c python/tests/schema.py python/tests/Makefile.am: Applied patch from Torkel Lyng to add Schemas support to the Python bindings and extend the schemas error API, registered a new test. * doc/* elfgcchack.h: rebuilt to regenerate the bindings Daniel
William M. Brack c68d78d2 2004-07-16T10:39:30 added a check on the argument for some classes (e.g. xmlDoc and xmlNode) * python/generator.py: added a check on the argument for some classes (e.g. xmlDoc and xmlNode) to prevent a segfault (as reported on the list). Further enhancement should be done to auto-create the appropriate object. * python/libxml.c: minor fix for a warning message; added a routine, currently not used, to report the description of a PyCObject. * python/libxml2class.txt: regenerated
Daniel Veillard f93a8660 2004-07-01T12:56:30 applied patch from Stéphane Bidoul to fix some Python bindings * python/libxml.c python/generator.py python/libxml.py python/libxml2-python-api.xml python/libxml2class.txt: applied patch from Stéphane Bidoul to fix some Python bindings initialization, then had to change the parserCleanup() to handle memory released there. * xmlmemory.c: added more debugging comments. Daniel
Daniel Veillard d69cc817 2004-07-01T09:36:26 do not provide functions used as destructor of classes as public methods * python/generator.py: do not provide functions used as destructor of classes as public methods to avoid double-free problem like in bug #145185 Daniel
Daniel Veillard 656ce948 2004-04-30T23:11:45 Fixed bug #141529 i.e. various problems when building with --without-html * xmllint.c xmlsave.c python/generator.py python/libxml.c: Fixed bug #141529 i.e. various problems when building with --without-html Daniel
Daniel Veillard 4f4a27f9 2004-01-14T23:50:34 applied patch from Stephane Bidoul to add enums to the Python bindings. * python/generator.py python/tests/tstLastError.py: applied patch from Stephane Bidoul to add enums to the Python bindings. Daniel
Daniel Veillard 46da4649 2004-01-06T22:54:57 applied patch from Stephane Bidoul for structured error handling from * python/libxml2-python-api.xml python/libxml_wrap.h python/types.c python/tests/Makefile.am python/tests/tstLastError.py: applied patch from Stephane Bidoul for structured error handling from python, and the associated test Daniel
William M. Brack f7eb794c 2003-12-31T07:59:17 fixed problem pointed out by Stéphane Bidoul on the list. completed * python/generator.py, python/libxml2class.txt: fixed problem pointed out by Stéphane Bidoul on the list. * xinclude.c, xpointer.c, xpath.c, include/libxml/xpointer.h: completed modifications required to fix Bug 129967 (at last!). Now wait to see how long before further trouble...
Daniel Veillard 6cbd6c07 2003-12-04T12:31:49 cleanup the output buffer support to at least get the basic to work fixes * python/generator.py python/libxml.c python/libxml_wrap.h: cleanup the output buffer support to at least get the basic to work * python/tests/outbuf.py python/tests/serialize.py: fixes and cleanup. * include/libxml/xmlwriter.h: cleanup Daniel
William M. Brack ea939087 2003-11-09T12:45:26 enhanced for range checking, updated to Unicode version 4.0.1 (API docs * genUnicode.py, xmlunicode.c, include/libxml/xmlunicode.h, python/libxml2class.txt: enhanced for range checking, updated to Unicode version 4.0.1 (API docs also updated) * python/generator.py: minor change to fix a warning
William M. Brack 6bf4d6fd 2003-11-04T23:29:16 small enhancement to assure ATTRIBUTE_UNUSED appears after the variable * python/generator.py: small enhancement to assure ATTRIBUTE_UNUSED appears after the variable declaration. * valid.c: trivial change to eliminate a warning message
Daniel Veillard 198c1bfc 2003-10-20T17:07:41 removing xmldwalk module since it got merged with the xmlreader. cleanup * Makefile.am configure.in xmldwalk.c xmlreader.c include/libxml/Makefile.am include/libxml/xmldwalk.h include/libxml/xmlversion.h.in: removing xmldwalk module since it got merged with the xmlreader. * parser.c: cleanup * win32/libxml2.def.src python/libxml2class.txt doc/libxml2-api.xml: rebuilt the API * python/tests/Makefile.am python/tests/reader7.py python/tests/walker.py: adding regression testing for the new xmlreader APIs, new APIs for reader creation, including makeing reader "walker" operating on preparsed document trees. Daniel
William M. Brack a71a8ef1 2003-08-06T04:43:55 further small changes to elminate most of the remaining warnings. * error.c trionan.[ch] testThreads.c python/generator.py: further small changes to elminate most of the remaining warnings.
Daniel Veillard c2664641 2003-07-29T20:44:53 patch from Joachim Bauch + cleanup for Relax NG error callbacks in python * python/generator.py python/libxml.c python/libxml2class.txt: patch from Joachim Bauch + cleanup for Relax NG error callbacks in python Daniel
Daniel Veillard 2b32e6f3 2003-04-26T12:03:54 fixed a problem in the generator where the way functions are remapped as * python/generator.py: fixed a problem in the generator where the way functions are remapped as methods on classes was not symetric and dependant on python internal hash order, as reported by Stéphane Bidoul Daniel
Daniel Veillard febcca40 2003-02-16T15:44:18 more bug-hunting added --tree to dump the intermediate rng tree patch from * relaxng.c: more bug-hunting * testRelax.c include/libxml/relaxng.h: added --tree to dump the intermediate rng tree * python/generator.py: patch from Stephane Bidoul to fix the generator on python < 2.2 Daniel
Daniel Veillard 591b4be0 2003-02-09T23:33:36 fixed doc comment problems adding RelaxNG wrappers added a specific test * xpath.c: fixed doc comment problems * python/generator.py python/libxml_wrap.h python/types.c: adding RelaxNG wrappers * python/tests/Makefile.am python/tests/relaxng.py: added a specific test of those early Python RelaxNG bindings Daniel
Daniel Veillard 71531f33 2003-02-05T13:19:53 comments cleanups use xmllint for doing the RelaxNG tests preparing 2.5.2 * HTMLparser.c tree.c xmlIO.c: comments cleanups * Makefile.am: use xmllint for doing the RelaxNG tests * configure.in: preparing 2.5.2 made schemas support default to on instead of off * relaxng.c: removed the verbosity * xmllint.c: added --relaxng option * python/generator.py python/libxml_wrap.h: prepared the integration of the new RelaxNG module and schemas * result/relaxng/*: less verbose output Daniel
Daniel Veillard ff12c494 2003-01-23T16:42:55 seems there is no good reasons to not generate bindings for XPointer * python/generator.py: seems there is no good reasons to not generate bindings for XPointer Daniel
Daniel Veillard 417be3ae 2003-01-20T21:26:34 patch from Stéphane Bidoul for better per context error message APIs * xmlreader.c python/drv_libxml2.py python/generator.py python/libxml.c python/libxml.py python/libxml_wrap.h python/types.c: patch from Stéphane Bidoul for better per context error message APIs * python/tests/ctxterror.py python/tests/readererr.py: update of the tests Daniel
Daniel Veillard 26f70269 2003-01-16T22:45:08 applied a patch from Stéphane Bidoul to allow per XMLtextReader error and * xmlreader.c include/libxml/xmlreader.h python/generator.py python/libxml.c python/libxml.py win32/libxml2.def.src: applied a patch from Stéphane Bidoul to allow per XMLtextReader error and warning handling * python/tests/Makefile.am python/tests/readererr.py: adding the specific regression test Daniel
Daniel Veillard e6227e05 2003-01-14T11:42:39 applied and fixed a patch from Stephane Bibould to provide per parser * python/generator.py python/libxml.c python/libxml.py python/libxml_wrap.h python/types.c: applied and fixed a patch from Stephane Bibould to provide per parser error handlers at the Python level. * python/tests/Makefile.am python/tests/ctxterror.py: added a regression test for it. Daniel
Daniel Veillard 3b87b6b3 2003-01-10T15:21:50 fixed a bug raised by Raymond Wiker, docSetRootElement() should not raise * python/generator.py: fixed a bug raised by Raymond Wiker, docSetRootElement() should not raise an exception if the return is None Daniel
Daniel Veillard dc85f28f 2002-12-31T11:18:37 modified the generator to allow keeping class references when creating new * python/generator.py: modified the generator to allow keeping class references when creating new classes, needed to fix a bug pointed by Stéphane Bidoul where the input buffer of the xmlTextReader instance gets destroyed if the python wrapper for the input is not referenced anymore. Daniel
Daniel Veillard aba976d8 2002-12-28T21:14:18 changed the generator to provide casing for the XmlTextReader similar to * python/generator.py python/libxml2class.txt python/tests/reader.py python/tests/reader2.py: changed the generator to provide casing for the XmlTextReader similar to C# so that examples and documentation are more directly transposable. Fixed the couple of tests in the suite. Daniel
Daniel Veillard 0eb38c72 2002-12-14T23:00:35 added the close and getattribute methods of XmlTextReader. added the * xmlreader.c doc/libxml2-api.xml: added the close and getattribute methods of XmlTextReader. * python/generator.py python/libxml_wrap.h python/types.c python/libxml2class.txt: added the reader to the Python bindings * python/tests/Makefile.am python/tests/reader.py: added a specific test for the Python bindings of the Reader APIs * parser.c: small cleanup. Daniel
Daniel Veillard a1196ed4 2002-11-23T11:22:49 trying to fix the Python bindings build on Windows (Stéphane Bidoul) * python/generator.py python/libxml.c python/setup.py.in: trying to fix the Python bindings build on Windows (Stéphane Bidoul) Daniel
Daniel Veillard d076a20e 2002-11-20T13:28:31 fixed #99082 for xi:include encoding="..." support on text includes. added * xinclude.c parserInternals.c encoding.c: fixed #99082 for xi:include encoding="..." support on text includes. * result/XInclude/tstencoding.xml test/XInclude/docs/tstencoding.xml test/XInclude/ents/isolatin.txt : added a specific regression test * python/generator.py python/libxml2class.txt: fixed the generator the new set of comments generated for doc/libxml2-api.xml were breaking the python generation. Daniel
Daniel Veillard d4cb1e8a 2002-09-26T09:34:23 fixed a stupid error breaking the python API Daniel * python/generator.py python/libxml2class.txt: fixed a stupid error breaking the python API Daniel
Daniel Veillard bd9afb52 2002-09-25T22:25:35 improving some documentation comments found and fixed a mem leak with * tree.c: improving some documentation comments * xmlregexp.c: found and fixed a mem leak with python regression tests * doc/*: rebuilt the doc and the API XML file including the xmlregexp.h xmlautomata.h and xmlunicode.h headers * python/generator.py python/libxml2class.txt python/libxml_wrap.h python/types.c: added access to the XML Schemas regexps from python * python/tests/Makefile.am python/tests/regexp.py: added a simple regexp bindings test Daniel
Daniel Veillard c6d4a933 2002-09-12T15:00:57 updated the python bindings, added code for easier File I/O, and the * python/generator.py python/libxml.c python/libxml.py python/libxml2-python-api.xml python/libxml2class.txt python/libxml_wrap.h python/types.c: updated the python bindings, added code for easier File I/O, and the ability to define a resolver from Python fixing bug #91635 * python/tests/Makefile.am python/tests/inbuf.py python/tests/outbuf.py python/tests/pushSAXhtml.py python/tests/resolver.py python/tests/serialize.py: updated and augmented the set of Python tests. Daniel
Daniel Veillard 42766c0e 2002-08-22T20:52:17 possible mem leak patch from Jason Adams integrated xf:escape-uri() from * xpath.c: possible mem leak patch from Jason Adams * xpath.c: integrated xf:escape-uri() from Wesley Terpstra in the XQuery namespace * configure.in: preparing 2.4.24 * doc/*.html: updated the web pages * python/generator.py: closing bug #85258 by generating conditional compile check to avoid linking to routines not configured in. Daniel
Daniel Veillard 6f46f6c5 2002-08-01T12:22:24 Opening the interface xmlNewCharEncodingHandler as requested in #89415 * encoding.c include/libxml/encoding.h: Opening the interface xmlNewCharEncodingHandler as requested in #89415 * python/generator.py python/setup.py.in: applied cleanup patches from Marc-Andre Lemburg * tree.c: fixing bug #89332 on a specific case of loosing the XML-1.0 namespace on xml:xxx attributes Daniel
Daniel Veillard 3cd7240d 2002-05-13T10:33:30 fixed a problem with the HTML parser pointed by Gary Benson sdding the * python/generator.py python/libxml2class.txt : fixed a problem with the HTML parser pointed by Gary Benson * python/tests/Makefile.am python/tests/pushSAXhtml.py: sdding the example Daniel
Daniel Veillard d2379010 2002-03-15T22:24:56 Cleanup of the python Makefiles based on Jacob and James feedback, fixed * libxml.spec.in python/Makefile.am python/tests/Makefile.am python/generator.py python/libxml.c python/types.c: Cleanup of the python Makefiles based on Jacob and James feedback, fixed the spec file accordingly, fixed the number of warning that passing my pedantic CFLAGS was generating. Conclusion is that Python includes are real crap. Daniel
Daniel Veillard ef6c46f8 2002-03-07T22:21:56 fixed xmlHasNsProp() bugs for defaulted from DTD attribs, added a specific * tree.c python/tests/Makefile.am python/tests/attribs.py: fixed xmlHasNsProp() bugs for defaulted from DTD attribs, added a specific regression test * python/generator.py: xmlHasNsProp() and xmlHasProp() shall not raise exceptions when failing to find the attribute. Daniel
Daniel Veillard 8d24cc18 2002-03-05T15:41:29 make sure SAX endDocument is always called as this could result in a * parser.c: make sure SAX endDocument is always called as this could result in a Python memory leak otherwise (it's used to decrement ref-counting) * python/generator.py python/libxml.c python/libxml.py python/libxml2-python-api.xml python/libxml2class.txt python/tests/error.py python/tests/xpath.py: implemented the suggestions made by Gary Benson and extended the tests to match it. Daniel
Daniel Veillard ba5e18a3 2002-03-05T09:36:43 applied patch fixing #73450 Daniel * python/generator.py: applied patch fixing #73450 Daniel
Daniel Veillard 6361da0c 2002-02-23T10:10:33 Added wrapper for the xmlURIPtr type, provided accessors, fixed the * python/generator.py python/libxml.c python/libxml2-python-api.xml python/libxml2class.txt python/libxml_wrap.h python/types.c: Added wrapper for the xmlURIPtr type, provided accessors, fixed the accessor generator for strings * python/tests/Makefile.am python/tests/tstURI.py: added a specific regression test. Daniel
Daniel Veillard 0fea6f45 2002-02-22T22:51:13 added the 'usual' setup.py to allow building a libxml2-python module based * python/README python/generator.py python/libxml.c python/setup.py: added the 'usual' setup.py to allow building a libxml2-python module based on the same code. The initialization is however different the 2 .so files fo libxml2 and libxslt are identical and they entry point initialize both libraries. this is done to avoid some possible nasty problem since the Python don't merge the maps of all shared modules. Daniel
Daniel Veillard 01a6d417 2002-02-11T18:42:20 removed tabs and used spaces. Daniel * python/*.py: removed tabs and used spaces. Daniel
Daniel Veillard 5e5c2d0a 2002-02-09T18:03:01 Justin Fletcher found some parts of the code needing cleanup Fixed the * parserInternals.c valid.c: Justin Fletcher found some parts of the code needing cleanup * libxml.spec.in python/Makefile.am python/generator.py python/libxml.c python/libxml.py: Fixed the python Makefiles corrected a bug showing up on ia64, changed the name of the python internal module too Daniel
Daniel Veillard c575b997 2002-02-08T13:28:40 Changed to the MIT Licence updated the doc accordingly preparing 2.4.14 * Copyright Makefile.am README configure.in libxml.spec.in: Changed to the MIT Licence * doc/FAQ.html doc/catalog.html doc/intro.html doc/xml.html doc/xmlio.html: updated the doc accordingly * include/libxml/xmlwin32version.h configure.in: preparing 2.4.14 release * python/generator.py python/libxml.c python/libxml2-python-api.xml python/libxml2class.txt python/libxml_wrap.h python/types.c: fixed the const xmlChar * wrapper and generator, XPath extension functions now use the context as first argument * python/tests/tstxpath.py python/tests/xpath.py python/tests/xpathext.py: Updated the tests accordingly * tree.c: fixed bug #70067 Daniel
Daniel Veillard 7db3871b 2002-02-07T16:39:11 cleanup always use stdout if output is NULL don't close filedescriptors * Makefile.am: cleanup * debugXML.c: always use stdout if output is NULL * xmlIO.c: don't close filedescriptors passed to outputBuffers * python/Makefile.am python/generator.py python/libxml2class.txt python/libxml_wrap.h python/types.c: augmented the number of bindings handling FILE * and XPath contexts * python/tests/Makefile.am: avoid a stupid problem due to the use of TEST. Daniel
Daniel Veillard 36eea2d2 2002-02-04T00:17:01 hardened the addChild function added accessors needed for xmlNode, a bit * tree.c: hardened the addChild function * python/generator.py python/libxml.c python/libxml2-python-api.xml python/libxml2class.txt python/libxml_wrap.h python/TODO: added accessors needed for xmlNode, a bit more testing and extension of interfaces * python/tests/Makefile.am python/tests/build.py: added a test build from scratch/save/load/check Daniel
Daniel Veillard 26f1dcc5 2002-02-03T16:53:19 more accessor classes for the parser context, allow to switch on and check * python/TODO python/generator.py python/libxml2-python-api.xml python/libxml2class.txt: more accessor classes for the parser context, allow to switch on and check validity * python/tests/Makefile.am python/tests/error.py python/tests/invalid.xml python/tests/valid.xml python/tests/validate.py: attded more test and and added error.py which I forgot to commit in the last step Daniel
Daniel Veillard 3ce5257b 2002-02-03T15:08:05 cleanup added class for parser context, added first cut for push mode * python/Makefile.am python/types.c: cleanup * python/libxml.c python/libxml.py python/libxml_wrap.h python/generator.py python/libxml2-python-api.xml python/libxml2class.txt: added class for parser context, added first cut for push mode support. Added a framework to generate accessors functions. * python/tests/Makefile.am python/tests/push.py: added a push test Daniel
Daniel Veillard 9589d455 2002-02-02T10:28:17 Progressing through the TODOs, class description output, extra XML API, * libxml.spec.in python/Makefile.am python/TODO python/generator.py python/libxml.c python/libxml2-python-api.xml python/libxml2class.txt: Progressing through the TODOs, class description output, extra XML API, RPM now builds the wrappers for all python installed versions Daniel
Daniel Veillard 253aa2c3 2002-02-02T09:17:16 added more informations in the libxml2-python package including docs. * configure.in libxml.spec.in python/Makefile.am python/TODO python/generator.py python/libxml2class.txt: added more informations in the libxml2-python package including docs. Slightly changed the class hierarchy * python/tests/*: added basic regression tests infrastructure too Daniel
Daniel Veillard a7340c83 2002-02-01T17:56:45 more work, now able to extend the XPath interpreter with functions written * python/Makefile.am python/generator.py python/libxml.c python/libxml.py: more work, now able to extend the XPath interpreter with functions written in python. Daniel
Daniel Veillard 6327697c 2002-01-31T23:49:05 Force the generato to use the API description in ../doc, Daniel
Daniel Veillard 1971ee26 2002-01-31T20:29:19 minor optimization more work on the python bindings, they now support * xpath.c: minor optimization * python/generator.py python/libxml.c python/libxml.py python/libxml_wrap.h: more work on the python bindings, they now support XPath and there is no evident leak Daniel
Daniel Veillard 36ed5290 2002-01-30T23:49:06 more work on the python bindings generator. Daniel * python/generator.py python/libxml.c python/libxml.py: more work on the python bindings generator. Daniel
Daniel Veillard 96fe095d 2002-01-30T20:52:23 more work on the python bindings. Daniel * python/generator.py python/libxml.c python/libxml_wrap.h: more work on the python bindings. Daniel
Daniel Veillard d2897fde 2002-01-30T16:37:32 commited early version of a python binding for private use only ATM Daniel * python/generator.py python/libxml.c python/libxml.py python/libxml_wrap.h: commited early version of a python binding for private use only ATM Daniel