def _getCategories(self): u"Gets the value of the categories - supported by TypePad only right now." #$NON-NLS-1$ categories = self.getNode().selectNodes(u"dc:subject") #$NON-NLS-1$ if categories and len(categories) > 0: rVal = [] for cat in categories: term = cat.getText() rVal.append(ZAtomCategory(term, None, None)) return rVal else: # revert to atom <category> element. Note that Typepad now uses this element instead of dc:subject, but still in the 0.3 namespace. return ZAtomBlogEntry._getCategories(self)
def _getCategories(self): u"Gets the value of the categories - supported by TypePad only right now." # $NON-NLS-1$ categories = self.getNode().selectNodes(u"dc:subject") # $NON-NLS-1$ if categories and len(categories) > 0: rVal = [] for cat in categories: term = cat.getText() rVal.append(ZAtomCategory(term, None, None)) return rVal else: # revert to atom <category> element. Note that Typepad now uses this element instead of dc:subject, but still in the 0.3 namespace. return ZAtomBlogEntry._getCategories(self)
def _getXMLContent(self, contentNode): u"Gets content formatted as XML (TypePad)." #$NON-NLS-1$ rval = ZAtomBlogEntry._getXMLContent(self, contentNode) rval = rval.replace(u"<default:", u"<") #$NON-NLS-2$ #$NON-NLS-1$ rval = rval.replace(u"</default:", u"</") #$NON-NLS-2$ #$NON-NLS-1$ return rval
def __init__(self, entryNode, prefix=u"atom:"): #$NON-NLS-1$ ZAtomBlogEntry.__init__(self, entryNode, prefix)
def __init__(self, entryNode, prefix = u"atom:"): #$NON-NLS-1$ ZAtomBlogEntry.__init__(self, entryNode, prefix)
def _getXMLContent(self, contentNode): u"Gets content formatted as XML (TypePad)." # $NON-NLS-1$ rval = ZAtomBlogEntry._getXMLContent(self, contentNode) rval = rval.replace(u"<default:", u"<") # $NON-NLS-2$ #$NON-NLS-1$ rval = rval.replace(u"</default:", u"</") # $NON-NLS-2$ #$NON-NLS-1$ return rval