Exemple #1
0
 def GET_wiki_recent(self, num, after, reverse, count):
     revisions = WikiRevision.get_recent(c.site)
     builder = WikiRecentRevisionBuilder(revisions,  num=num, count=count,
                                         reverse=reverse, after=after,
                                         wrap=default_thing_wrapper(),
                                         skip=not c.is_wiki_mod)
     listing = WikiRevisionListing(builder).listing()
     return WikiRecent(listing).render()
Exemple #2
0
 def GET_wiki_recent(self, num, after, reverse, count):
     revisions = WikiRevision.get_recent(c.site)
     builder = WikiRecentRevisionBuilder(revisions,  num=num, count=count,
                                         reverse=reverse, after=after,
                                         wrap=default_thing_wrapper(),
                                         skip=not c.is_wiki_mod)
     listing = WikiRevisionListing(builder).listing()
     return WikiRecent(listing).render()
Exemple #3
0
 def GET_wiki_recent(self, num, after, reverse, count):
     revisions = WikiRevision.get_recent(c.site)
     wikiuser = c.user if c.user_is_loggedin else None
     builder = WikiRecentRevisionBuilder(revisions,  num=num, count=count,
                                         reverse=reverse, after=after,
                                         wrap=default_thing_wrapper(),
                                         skip=not c.is_wiki_mod,
                                         user=wikiuser, sr=c.site)
     listing = WikiRevisionListing(builder).listing()
     return WikiRecent(listing).render()
Exemple #4
0
 def GET_wiki_recent(self, num, after, reverse, count):
     revisions = WikiRevision.get_recent(c.site)
     wikiuser = c.user if c.user_is_loggedin else None
     builder = WikiRecentRevisionBuilder(revisions,  num=num, count=count,
                                         reverse=reverse, after=after,
                                         wrap=default_thing_wrapper(),
                                         skip=not c.is_wiki_mod,
                                         user=wikiuser, sr=c.site)
     listing = WikiRevisionListing(builder).listing()
     return WikiRecent(listing).render()
Exemple #5
0
 def GET_wiki_recent(self, num, after, reverse, count):
     """Retrieve a list of recently changed wiki pages in this subreddit"""
     revisions = WikiRevision.get_recent(c.site)
     wikiuser = c.user if c.user_is_loggedin else None
     builder = WikiRecentRevisionBuilder(revisions,
                                         num=num,
                                         count=count,
                                         reverse=reverse,
                                         after=after,
                                         wrap=default_thing_wrapper(),
                                         skip=not c.is_wiki_mod,
                                         user=wikiuser,
                                         sr=c.site)
     listing = WikiRevisionListing(builder).listing()
     return WikiRecent(listing, sr_path=not c.site.is_homepage).render()