* 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! :)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -51,7 +51,6 @@ class XmlFile(object):
|
||||
|
||||
def __init__(self, tag):
|
||||
self.rootTag = tag
|
||||
self.newDocument()
|
||||
|
||||
def newDocument(self):
|
||||
"""clear DOM"""
|
||||
|
||||
@@ -43,7 +43,6 @@ class XmlFile(object):
|
||||
|
||||
def __init__(self, tag):
|
||||
self.rootTag = tag
|
||||
self.newDocument()
|
||||
|
||||
def newDocument(self):
|
||||
"""clear DOM"""
|
||||
|
||||
@@ -36,7 +36,6 @@ class XmlFile(object):
|
||||
|
||||
def __init__(self, tag):
|
||||
self.rootTag = tag
|
||||
self.newDocument()
|
||||
|
||||
def newDocument(self):
|
||||
"""clear DOM"""
|
||||
|
||||
Reference in New Issue
Block a user