From 39510d36767a8e354acdc4f3112a53a6cf940fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Sat, 24 Sep 2005 17:18:01 +0000 Subject: [PATCH] * fix args for setAttributeNode --- pisi/xmlfile.py | 2 +- tests/xmlfiletests.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pisi/xmlfile.py b/pisi/xmlfile.py index 0652cf32..2add1a2d 100644 --- a/pisi/xmlfile.py +++ b/pisi/xmlfile.py @@ -242,7 +242,7 @@ class autoxml(type): attr.value = text anonfuns = cls.gen_anon_basic(attr, spec, readtext, createnode, writetext) def mergetext(node, attr): - node.setAttributeNode(node, attr) + node.setAttributeNode(attr) return cls.gen_named_comp(attr, spec, anonfuns, mergetext) def gen_tag_member(cls, tag): diff --git a/tests/xmlfiletests.py b/tests/xmlfiletests.py index 72a441f7..0eb9dc31 100644 --- a/tests/xmlfiletests.py +++ b/tests/xmlfiletests.py @@ -40,8 +40,8 @@ class XmlFileTestCase(unittest.TestCase): t_Number = [types.IntType, xmlfile.optional] t_Email = [types.StringType, xmlfile.optional] a_href = [types.StringType, xmlfile.mandatory] - t_Projects = [ [types.StringType], xmlfile.mandatory, 'Project'] - t_OtherInfo = [ OtherInfo, xmlfile.optional ] + #t_Projects = [ [types.StringType], xmlfile.mandatory, 'Project'] + #t_OtherInfo = [ OtherInfo, xmlfile.optional ] a = A() self.assertEqual(a.href, None)