Beispiel #1
0
 def GET_wiki_discussions(self, page, num, after, reverse, count):
     page_url = add_sr("%s/%s" % (c.wiki_base_url, page.name))
     builder = url_links_builder(page_url, num=num, after=after,
                                 reverse=reverse, count=count)
     listing = LinkListing(builder).listing()
     return WikiDiscussions(listing, page=page.name,
                            may_revise=this_may_revise(page)).render()
Beispiel #2
0
 def GET_wiki_discussions(self, page, num, after, reverse, count):
     page_url = add_sr("%s/%s" % (c.wiki_base_url, page.name))
     builder = url_links_builder(page_url, num=num, after=after,
                                 reverse=reverse, count=count)
     listing = LinkListing(builder).listing()
     return WikiDiscussions(listing, page=page.name,
                            may_revise=this_may_revise(page)).render()
Beispiel #3
0
 def GET_discussions(self, num, after, reverse, count):
     """Get a list of reddit submissions linking to this thread."""
     builder = url_links_builder(
         url="/live/" + c.liveupdate_event._id,
         num=num,
         after=after,
         reverse=reverse,
         count=count,
     )
     listing = LinkListing(builder).listing()
     return pages.LiveUpdateEventPage(content=listing, ).render()
 def GET_discussions(self, num, after, reverse, count):
     builder = url_links_builder(
         url="/live/" + c.liveupdate_event._id,
         num=num,
         after=after,
         reverse=reverse,
         count=count,
     )
     listing = LinkListing(builder).listing()
     return pages.LiveUpdatePage(
         content=listing,
     ).render()
 def GET_discussions(self, num, after, reverse, count):
     """Get a list of reddit submissions linking to this thread."""
     builder = url_links_builder(
         url="/live/" + c.liveupdate_event._id,
         num=num,
         after=after,
         reverse=reverse,
         count=count,
     )
     listing = LinkListing(builder).listing()
     return pages.LiveUpdateEventPage(
         content=listing,
     ).render()
Beispiel #6
0
 def GET_wiki_discussions(self, page, num, after, reverse, count):
     """Retrieve a list of discussions about this wiki `page`"""
     page_url = add_sr("%s/%s" % (c.wiki_base_url, page.name))
     builder = url_links_builder(page_url,
                                 num=num,
                                 after=after,
                                 reverse=reverse,
                                 count=count)
     listing = LinkListing(builder).listing()
     return WikiDiscussions(listing,
                            page=page.name,
                            may_revise=this_may_revise(page),
                            sr_path=not c.site.is_homepage).render()