示例#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]
示例#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)
示例#3
0
 def __init__(self, db):
     BaseDbElement.__init__(self, db, 'html')
     self.db = db
     self.body = Body()
     self.appendChild(self.body)