예제 #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()
예제 #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()
예제 #3
0
파일: wiki.py 프로젝트: aldarund/reddit
 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()
예제 #4
0
파일: wiki.py 프로젝트: wigg234/reddit
 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()
예제 #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()