Exemplo n.º 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)
Exemplo n.º 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)