def __init__(self): ZBlogDocument.__init__(self) self.setId(u"_template_preview_document_") #$NON-NLS-1$ self.setTitle(u"Proin tincidunt. Sed sapien libero, feugiat eu, tristique.") #$NON-NLS-1$ self.setCreationTime(ZSchemaDateTime()) self.setLastModifiedTime(ZSchemaDateTime()) content = ZXhtmlContent() content.setMode(u"xml") #$NON-NLS-1$ content.setType(u"application/xhtml+xml") #$NON-NLS-1$ content.setXhtmlDocument(self._createXHtmlDocument()) self.setContent(content)
def __init__(self): ZBlogDocument.__init__(self) self.setId(u"_template_preview_document_") #$NON-NLS-1$ self.setTitle( u"Proin tincidunt. Sed sapien libero, feugiat eu, tristique." ) #$NON-NLS-1$ self.setCreationTime(ZSchemaDateTime()) self.setLastModifiedTime(ZSchemaDateTime()) content = ZXhtmlContent() content.setMode(u"xml") #$NON-NLS-1$ content.setType(u"application/xhtml+xml") #$NON-NLS-1$ content.setXhtmlDocument(self._createXHtmlDocument()) self.setContent(content)
def __init__(self, title, xhtmlDoc): self.title = title self.xhtmlDoc = xhtmlDoc ZBlogDocument.__init__(self) self.setId(u"_blog_post_editor_preview_document_") #$NON-NLS-1$ self.setTitle(self.title) self.setCreationTime(ZSchemaDateTime()) self.setLastModifiedTime(ZSchemaDateTime()) content = ZXhtmlContent() content.setMode(u"xml") #$NON-NLS-1$ content.setType(u"application/xhtml+xml") #$NON-NLS-1$ content.setXhtmlDocument(self.xhtmlDoc) self.setContent(content)