From 2ab7ac3f94fd6234d8a3e9ed69cc3b054d0dab26 Mon Sep 17 00:00:00 2001 From: Ryan Rix Date: Tue, 8 Dec 2009 12:20:16 -0700 Subject: Fixed the XML parser by fixing a stupid == -> = mistake. XML parser is working but could still use quite a bit of cleanup. We also need to look at how exactly it is that I can verify that this data is intact properly without writing a debug class for it. I've looked at pprint but it doesn't seem to be deseigned to operate on arbitrary things like perl's DataDumper Will look into that more at a later time. --- backend/tour_menuobject.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'backend') diff --git a/backend/tour_menuobject.py b/backend/tour_menuobject.py index a16b84a..b2839ef 100644 --- a/backend/tour_menuobject.py +++ b/backend/tour_menuobject.py @@ -156,13 +156,6 @@ class MenuObject: if data == "": return - #if self.currenElement == False: - # return - - print "currentElement: "+self.currentElement - print "data: "+data - - if self.currentElement == "DisplayName": self.activeNode.displayName = data @@ -186,7 +179,7 @@ class MenuObject: def parserEndElement(self, name): print "Encountered "+name+" node End" - self.currentElement == False + self.currentElement = "" if name == "Page": self.activeNode = self.activeNode.parent -- cgit