From 6ccb51a189a224ff80216983844160cdc91a8bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Wed, 16 Nov 2005 23:14:27 +0000 Subject: [PATCH] * fix: do initialize XmlFile in constructor, but don't make a new document. * ok, now it turns out nobody had the courage to test pisi svn. you shall pay for that! :) --- pisi/pxml/autoxml.py | 4 +--- pisi/pxml/xmlfilecdom.py | 1 - pisi/pxml/xmlfilemdom.py | 1 - pisi/pxml/xmlfilepiks.py | 1 - 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/pisi/pxml/autoxml.py b/pisi/pxml/autoxml.py index 8938fcd6..6cf15551 100644 --- a/pisi/pxml/autoxml.py +++ b/pisi/pxml/autoxml.py @@ -304,10 +304,8 @@ class autoxml(oo.autosuper, oo.autoprop): #else: # tag = self.__class__.tag # ought to be autoxml #XmlFile.__init__(self, tag = tag) - #workaround: init only top level xmlfile, not the parts if not args.has_key('tag'): - #XmlFile.__init__(self, tag = cls.tag) - pass # disable xmlfile support in constructor entirely! + XmlFile.__init__(self, tag = cls.tag) for base in cls.autoxml_bases: base.__init__(self) #super(cls, self).__init__(tag = tag) cooperative shit disabled for now diff --git a/pisi/pxml/xmlfilecdom.py b/pisi/pxml/xmlfilecdom.py index a0ea49e7..beca979f 100644 --- a/pisi/pxml/xmlfilecdom.py +++ b/pisi/pxml/xmlfilecdom.py @@ -51,7 +51,6 @@ class XmlFile(object): def __init__(self, tag): self.rootTag = tag - self.newDocument() def newDocument(self): """clear DOM""" diff --git a/pisi/pxml/xmlfilemdom.py b/pisi/pxml/xmlfilemdom.py index 6e4e7fb5..28f5819e 100644 --- a/pisi/pxml/xmlfilemdom.py +++ b/pisi/pxml/xmlfilemdom.py @@ -43,7 +43,6 @@ class XmlFile(object): def __init__(self, tag): self.rootTag = tag - self.newDocument() def newDocument(self): """clear DOM""" diff --git a/pisi/pxml/xmlfilepiks.py b/pisi/pxml/xmlfilepiks.py index 19df6264..9333e948 100644 --- a/pisi/pxml/xmlfilepiks.py +++ b/pisi/pxml/xmlfilepiks.py @@ -36,7 +36,6 @@ class XmlFile(object): def __init__(self, tag): self.rootTag = tag - self.newDocument() def newDocument(self): """clear DOM"""