Mercurial > libervia-website
diff pages/news/page_meta.py @ 22:5fd933e238bb
massive refactoring from camelCase -> snake_case. See backend commit log for more details
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 22 May 2023 09:11:54 +0200 |
parents | dc880664a8ec |
children | e7c7327f9f25 |
line wrap: on
line diff
--- a/pages/news/page_meta.py Tue Nov 30 17:39:46 2021 +0100 +++ b/pages/news/page_meta.py Mon May 22 09:11:54 2023 +0200 @@ -14,7 +14,7 @@ async def prepare_render(self, request): global service, node if service is None: - blog_dict = self.getConfig('news_blog_dict', {}) + blog_dict = self.config_get('news_blog_dict', {}) try: service = jid.JID(blog_dict['service']) except RuntimeError as e: @@ -26,16 +26,16 @@ node = blog_dict.get('node', '') if not blog_dict or service is None: log.warning(_('No value set for news_blog_dict, "news" page can\'t be used')) - self.pageError(request, C.HTTP_SERVICE_UNAVAILABLE) + self.page_error(request, C.HTTP_SERVICE_UNAVAILABLE) - data = self.getRData(request) + data = self.get_r_data(request) data['service'] = service data['node'] = node - # self.checkCache( + # self.check_cache( # request, C.CACHE_PUBSUB, service=service, node=node, short="microblog") # we now need blog items, using blog common page # this will fill the "items" template data - blog_page = self.getPageByName("blog_view") + blog_page = self.get_page_by_name("blog_view") await blog_page.prepare_render(self, request)