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]
Exemple #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]
 def __init__(self, app, **atts):
     BaseElement.__init__(self, 'html', **atts)
     self.app = app
     self.conn = app.conn
     self.body = Body()
     self.appendChild(self.body)
Exemple #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)