def _deserializeBlogInfo(self, blogInfoNode, document): blogInfo = ZBlogInfo() blogInfo.setAccountId(blogInfoNode.getAttribute(u"account-id")) #$NON-NLS-1$ blogInfo.setBlogId(blogInfoNode.getAttribute(u"blog-id")) #$NON-NLS-1$ self._deserializePublishInfo(blogInfoNode, blogInfo) self._deserializeCategories(blogInfoNode, blogInfo) document.addBlogInfo(blogInfo)
def _createRavenBlogInfo(self, zblog, serverEntry): # blog info zbloginfo = ZBlogInfo() zbloginfo.setAccountId(self.getAccountId()) zbloginfo.setBlogId(zblog.getId()) # published info zpubinfo = self._createRavenPubInfo(zblog, serverEntry) zbloginfo.setPublishInfo(zpubinfo) # build post entry categories for serverCategory in serverEntry.getCategories(): # Convert server side category to Raven ZCategory. zcategory = self._createRavenCategory(zblog, serverCategory) zbloginfo.addCategory(zcategory) return zbloginfo
def _createRavenBlogInfo(self, zblog, serverEntry): # blog info zbloginfo = ZBlogInfo() zbloginfo.setAccountId( self.getAccountId() ) zbloginfo.setBlogId( zblog.getId() ) # published info zpubinfo = self._createRavenPubInfo(zblog, serverEntry) zbloginfo.setPublishInfo(zpubinfo) # build post entry categories for serverCategory in serverEntry.getCategories(): # Convert server side category to Raven ZCategory. zcategory = self._createRavenCategory(zblog, serverCategory) zbloginfo.addCategory(zcategory) return zbloginfo
def _deserializeBlogInfo(self, blogInfoNode, document): blogInfo = ZBlogInfo() blogInfo.setAccountId( blogInfoNode.getAttribute(u"account-id")) #$NON-NLS-1$ blogInfo.setBlogId(blogInfoNode.getAttribute(u"blog-id")) #$NON-NLS-1$ self._deserializePublishInfo(blogInfoNode, blogInfo) self._deserializeCategories(blogInfoNode, blogInfo) document.addBlogInfo(blogInfo)