Example #1
0
 def generateHTML(self):
     htmlGenerator = HTMLGenerator()
     htmlGenerator.addHTML(htmlGenerator.buildChildren(self))
     print lxml.html.tostring(htmlGenerator.getHTML())
     with open('myapp.html', 'w') as f:
         f.write(lxml.html.tostring(htmlGenerator.getHTML()))
Example #2
0
 def generateHTML(self):
     htmlGenerator = HTMLGenerator()
     htmlGenerator.addHTML(htmlGenerator.buildChildren(self))
     print lxml.html.tostring(htmlGenerator.getHTML())
     with open('myapp.html', 'w') as f:
         f.write(lxml.html.tostring(htmlGenerator.getHTML()))
Example #3
0
 def show(self):
     htmlGenerator = HTMLGenerator()
     htmlGenerator.addHTML(htmlGenerator.buildChildren(self))
     htmlGenerator.dumpHTML()
     self.initialize()
Example #4
0
 def show(self):
     htmlGenerator = HTMLGenerator()
     htmlGenerator.addHTML(htmlGenerator.buildChildren(self))
     htmlGenerator.dumpHTML()
     self.initialize()