[Patches] [ python-Patches-1463026 ] Bugfix for #847665 (XMLGenerator dies in namespace mode)

SourceForge.net noreply at sourceforge.net
Mon Feb 12 13:22:44 CET 2007


Patches item #1463026, was opened at 2006-04-02 14:53
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1463026&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: XML
Group: Python 2.4
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Nikolai Grigoriev (ngrig)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bugfix for #847665 (XMLGenerator dies in namespace mode)

Initial Comment:
This is a patch for xml.sax.saxutils.XMLGenerator
class. It fixes the ancient bug #847665 - XMLGenerator
dies in namespace-aware mode. Technically, the patch
defines a function _qname() to write QName from (NSURI,
local name) pair, and calls this function where
appropriate inside startElementNS()/endElementNS(). The
patch is applicable to both maintenance branch
(release24-maint) and trunk versions:

python/branches/release24-maint/Lib/xml/sax/saxutils.py
python/trunk/Lib/xmlcore/sax/saxutils.py

More details and a test are available in the bug
tracker: 
http://sourceforge.net/tracker/index.php?func=detail&aid=847665&group_id=5470&atid=105470



----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2007-02-12 13:22

Message:
Logged In: YES 
user_id=21627
Originator: NO

Thanks for the patch. Committed as r53754 and r53755.

----------------------------------------------------------------------

Comment By: Nikolai Grigoriev (ngrig)
Date: 2006-04-02 15:13

Message:
Logged In: YES 
user_id=195108

For convenience, I add a simple test for basic cases. This
is for Python 2.4 (it imports xml.sax, rather than
xmlcore.sax). 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1463026&group_id=5470


More information about the Patches mailing list