Beispiel #1
0
    def get_rss2(cls):
        posts, has_next = PostManager.get_all(limit=cls.ITEM_LIMIT)

        return IndexView(items=posts, has_next=has_next, mode=IndexView.MODE_SINCE).render_rss2()
Beispiel #2
0
    def get_sitemap(cls):
        posts, has_next = PostManager.get_all()

        return IndexView(items=posts, has_next=has_next, mode=IndexView.MODE_SINCE).render_sitemap()