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"""