def get(self, source_id): pager = Pager(self) article_search_params = ArticleSearchParams(self) article_search_params.show_article_type=True article_search_params.show_source=True article_search_params.show_summary=True article_search_params.show_comments_count = True article_search_params.source_id = source_id pager = yield self.async_do(ArticleService.page_articles, self.db, pager, article_search_params) self.render("index.html", base_url=self.reverse_url('articleSource', source_id), pager=pager, article_search_params=article_search_params)
async def get(self, source_id): pager = Pager(self) article_search_params = ArticleSearchParams(self) article_search_params.show_article_type = True article_search_params.show_source = True article_search_params.show_summary = True article_search_params.show_comments_count = True article_search_params.source_id = source_id pager = await self.loop_current.run_in_executor( self.thread_executor, ArticleService.page_articles, self.db, pager, article_search_params) self.render("index.html", base_url=self.reverse_url('articleSource', source_id), pager=pager, article_search_params=article_search_params)