From c1db8c161d8a5cc3b8f4b4a6b266481f5271ddc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Wed, 28 Sep 2005 12:45:34 +0000 Subject: [PATCH] * encode the attribute correctly --- pisi/xmlfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/xmlfile.py b/pisi/xmlfile.py index 1094492a..315530a3 100644 --- a/pisi/xmlfile.py +++ b/pisi/xmlfile.py @@ -237,9 +237,9 @@ class autoxml(type): def createnode(xml, attr_name): print 'create attr', attr_name return xml.newAttribute(attr_name) # create an attribute node - def writetext(xml, attr, nil, text): + def writetext(xml, node, attr, text): print 'write attr', attr, text - attr.value = text + node.setAttribute(attr, text) anonfuns = cls.gen_anon_basic(attr, spec, readtext, createnode, writetext) def mergetext(node, newattr): print 'merge attr', node, attr