Example #1
0
class BaseDocument(BaseElement):
    def __init__(self, app, **atts):
        BaseElement.__init__(self, 'html', **atts)
        self.app = app
        self.conn = app.conn
        self.body = Body()
        self.appendChild(self.body)

    def clear_body(self):
        while self.body.hasChildNodes():
            del self.body.childNodes[0]
Example #2
0
class BaseDocument(BaseElement):
    def __init__(self, app, **atts):
        BaseElement.__init__(self, 'html', **atts)
        self.app = app
        self.conn = app.conn
        self.body = Body()
        self.appendChild(self.body)

    def clear_body(self):
        while self.body.hasChildNodes():
            del self.body.childNodes[0]
Example #3
0
 def __init__(self, app, **atts):
     BaseElement.__init__(self, 'html', **atts)
     self.app = app
     self.conn = app.conn
     self.body = Body()
     self.appendChild(self.body)
Example #4
0
 def __init__(self, app, **atts):
     BaseElement.__init__(self, 'html', **atts)
     self.app = app
     self.conn = app.conn
     self.body = Body()
     self.appendChild(self.body)
 def __init__(self, app, **atts):
     BaseDbElement.__init__(self, app, 'html', **atts)
     self.app = app
     self.db = app.db
     self.body = Body()
     self.appendChild(self.body)