* 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:
Eray Özkural
2005-11-16 23:14:27 +00:00
parent 858dba94b4
commit 6ccb51a189
4 changed files with 1 additions and 6 deletions
+1 -3
View File
@@ -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
-1
View File
@@ -51,7 +51,6 @@ class XmlFile(object):
def __init__(self, tag):
self.rootTag = tag
self.newDocument()
def newDocument(self):
"""clear DOM"""
-1
View File
@@ -43,7 +43,6 @@ class XmlFile(object):
def __init__(self, tag):
self.rootTag = tag
self.newDocument()
def newDocument(self):
"""clear DOM"""
-1
View File
@@ -36,7 +36,6 @@ class XmlFile(object):
def __init__(self, tag):
self.rootTag = tag
self.newDocument()
def newDocument(self):
"""clear DOM"""