Exemplo n.º 1
0
class BaseDocument(BaseDbElement):
    def __init__(self, db):
        BaseDbElement.__init__(self, db, 'html')
        self.db = db
        self.body = Body()
        self.appendChild(self.body)

    def clear_body(self):
        while self.body.hasChildNodes():
            del self.body.childNodes[0]
Exemplo n.º 2
0
 def __init__(self, app):
     BaseDbElement.__init__(self, app, 'html')
     self.app = app
     self.db = app.db
     self.body = Body()
     self.appendChild(self.body)
Exemplo n.º 3
0
 def __init__(self, db):
     BaseDbElement.__init__(self, db, 'html')
     self.db = db
     self.body = Body()
     self.appendChild(self.body)