diff src/pages/g/e/page_meta.py @ 1085:1c09f41e2f52

pages: fixed used of "blog" page instead of "blog_view"
author Goffi <goffi@goffi.org>
date Mon, 02 Apr 2018 09:09:43 +0200
parents ad97d7e7de3b
children cdd389ef97bc
line wrap: on
line diff
--- a/src/pages/g/e/page_meta.py	Sun Apr 01 20:56:16 2018 +0200
+++ b/src/pages/g/e/page_meta.py	Mon Apr 02 09:09:43 2018 +0200
@@ -68,14 +68,14 @@
 
     # we now need blog items, using blog common page
     # this will fill the "items" template data
-    blog_page = self.getPageByName(u'blog')
+    blog_page = self.getPageByName(u'blog_view')
     yield blog_page.prepare_render(self, request)
 
 @defer.inlineCallbacks
 def on_data_post(self, request):
     type_ = self.getPostedData(request, u'type')
     if type_ == u'comment':
-        blog_page = self.getPageByName(u'blog')
+        blog_page = self.getPageByName(u'blog_view')
         yield blog_page.on_data_post(self, request)
     elif type_ == u'attendance':
         profile = self.getProfile(request)