Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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
Example #4
0
 def __init__(self, entryNode, prefix=u"atom:"):  #$NON-NLS-1$
     ZAtomBlogEntry.__init__(self, entryNode, prefix)
Example #5
0
 def __init__(self, entryNode, prefix = u"atom:"): #$NON-NLS-1$
     ZAtomBlogEntry.__init__(self, entryNode, prefix)
Example #6
0
 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