Ejemplo n.º 1
0
Archivo: RSS.py Proyecto: philn/alinea
 def getFeedUrl(self):
     section = Alinea_getSectionWithID(self.sectionID)
     return section.public_url()
Ejemplo n.º 2
0
Archivo: RSS.py Proyecto: philn/alinea
 def getArticles(self,orderBy='date'):
     " return the last 10 articles "
     section = Alinea_getSectionWithID(self.sectionID)
     articles = section.getArticles()
     articles.reverse()
     return articles[:10]