Ejemplo n.º 1
0
    def GET_wiki_listing(self):
        def check_hidden(page):
            g.log.debug("Got here %s" % str(this_may_view(page)))
            return this_may_view(page)

        pages = WikiPage.get_listing(c.site, filter_check=check_hidden)
        return WikiListing(pages).render()
Ejemplo n.º 2
0
    def GET_wiki_listing(self):
        """Retrieve a list of wiki pages in this subreddit"""
        def check_hidden(page):
            return page.listed and this_may_view(page)

        pages, linear_pages = WikiPage.get_listing(c.site,
                                                   filter_check=check_hidden)
        return WikiListing(pages, linear_pages).render()
Ejemplo n.º 3
0
    def GET_wiki_listing(self):
        """Retrieve a list of wiki pages in this subreddit"""

        def check_hidden(page):
            return page.listed and this_may_view(page)

        pages, linear_pages = WikiPage.get_listing(c.site, filter_check=check_hidden)
        return WikiListing(pages, linear_pages).render()
Ejemplo n.º 4
0
 def GET_wiki_listing(self):
     def check_hidden(page):
         return this_may_view(page)
     pages, linear_pages = WikiPage.get_listing(c.site, filter_check=check_hidden)
     return WikiListing(pages, linear_pages).render()
Ejemplo n.º 5
0
Archivo: wiki.py Proyecto: etel/reddit
 def GET_wiki_listing(self):
     def check_hidden(page):
         g.log.debug("Got here %s" % str(this_may_view(page)))
         return this_may_view(page)
     pages = WikiPage.get_listing(c.site, filter_check=check_hidden)
     return WikiListing(pages).render()
Ejemplo n.º 6
0
 def GET_wiki_listing(self):
     def check_hidden(page):
         return this_may_view(page)
     pages, linear_pages = WikiPage.get_listing(c.site, filter_check=check_hidden)
     return WikiListing(pages, linear_pages).render()