From 2b32e6f34c3274dadb1fa04f2c979b0685dd71c8 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Sat, 26 Apr 2003 12:03:54 +0000 Subject: [PATCH] fixed a problem in the generator where the way functions are remapped as MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- ChangeLog | 7 +++++ python/generator.py | 2 -- python/libxml2class.txt | 64 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 98461824..0af76b33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sat Apr 26 14:00:58 CEST 2003 Daniel Veillard + + * 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 + Fri Apr 25 21:52:33 MDT 2003 John Fleck * doc/tutorial: diff --git a/python/generator.py b/python/generator.py index 5b5bced9..b444443e 100755 --- a/python/generator.py +++ b/python/generator.py @@ -865,8 +865,6 @@ def buildWrappers(): func = nameFixup(name, classe, type, file) info = (1, func, name, ret, args, file) function_classes[classe].append(info) - if found == 1: - break if found == 1: continue if name[0:8] == "xmlXPath": diff --git a/python/libxml2class.txt b/python/libxml2class.txt index 1e6808ac..b5708062 100644 --- a/python/libxml2class.txt +++ b/python/libxml2class.txt @@ -482,6 +482,7 @@ Class xmlDoc(xmlNode) # functions from module tree copyDoc() + copyNode() createIntSubset() docCompressMode() dump() @@ -504,21 +505,33 @@ Class xmlDoc(xmlNode) newGlobalNs() newReference() nodeDumpOutput() + nodeGetBase() + nodeListGetRawString() + nodeListGetString() + reconciliateNs() saveFile() saveFileEnc() saveFileTo() saveFormatFile() saveFormatFileEnc() saveFormatFileTo() + searchNs() + searchNsByHref() setDocCompressMode() + setListDoc() + setRootElement() + setTreeDoc() stringGetNodeList() stringLenGetNodeList() # functions from module valid ID() + isID() isMixedElement() + isRef() removeID() removeRef() + validNormalizeAttributeValue() # functions from module xinclude xincludeProcess() @@ -526,6 +539,9 @@ Class xmlDoc(xmlNode) # functions from module xpath xpathNewContext() xpathOrderDocElems() + + # functions from module xpointer + xpointerNewContext() Class xpathContext() # accessors contextDoc() @@ -586,10 +602,16 @@ Class xmlAttr(xmlNode) debugDumpAttrList() # functions from module tree + copyProp() + copyPropList() freeProp() freePropList() removeProp() + # functions from module valid + removeID() + removeRef() + Class xmlTextReader(xmlTextReaderCore) @@ -657,11 +679,18 @@ Class relaxNgSchema() relaxNGDumpTree() relaxNGFree() relaxNGNewValidCtxt() + + # functions from module xmlreader + RelaxNGSetSchema() Class relaxNgValidCtxt() # functions from module relaxng relaxNGFreeValidCtxt() + relaxNGValidateDoc() + relaxNGValidateFullElement() + relaxNGValidatePopElement() relaxNGValidatePushCData() + relaxNGValidatePushElement() Class xpathParserContext() # accessors context() @@ -687,6 +716,19 @@ Class xpathParserContext() xpathModValues() xpathMultValues() xpathNamespaceURIFunction() + xpathNextAncestor() + xpathNextAncestorOrSelf() + xpathNextAttribute() + xpathNextChild() + xpathNextDescendant() + xpathNextDescendantOrSelf() + xpathNextFollowing() + xpathNextFollowingSibling() + xpathNextNamespace() + xpathNextParent() + xpathNextPreceding() + xpathNextPrecedingSibling() + xpathNextSelf() xpathNormalizeFunction() xpathNotEqualValues() xpathNotFunction() @@ -746,6 +788,7 @@ Class parserCtxt(parserCtxtCore) # functions from module parserInternals decodeEntities() + handleEntity() namespaceParseNCName() namespaceParseNSDef() nextChar() @@ -815,7 +858,17 @@ Class xmlNs(xmlNode) copyNamespaceList() freeNs() freeNsList() + newChild() + newDocNode() + newDocNodeEatName() + newDocRawNode() newNodeEatName() + newNsProp() + newNsPropEatName() + newTextChild() + setNs() + setNsProp() + unsetNsProp() # functions from module xpathInternals xpathNodeSetFreeNs() @@ -840,6 +893,17 @@ Class relaxNgParserCtxt() Class outputBuffer(ioWriteWrapper) + # functions from module HTMLtree + htmlDocContentDumpFormatOutput() + htmlDocContentDumpOutput() + htmlNodeDumpFormatOutput() + htmlNodeDumpOutput() + + # functions from module tree + nodeDumpOutput() + saveFileTo() + saveFormatFileTo() + # functions from module xmlIO close() flush()