changeset 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 a24dd1d316f5
children 2566f17a0e59
files src/pages/g/e/page_meta.py src/pages/merge-requests/view/page_meta.py src/pages/photos/album/page_meta.py src/pages/tickets/view/page_meta.py
diffstat 4 files changed, 5 insertions(+), 5 deletions(-) [+]
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)
--- a/src/pages/merge-requests/view/page_meta.py	Sun Apr 01 20:56:16 2018 +0200
+++ b/src/pages/merge-requests/view/page_meta.py	Mon Apr 02 09:09:43 2018 +0200
@@ -65,7 +65,7 @@
 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)
     else:
         log.warning(_(u"Unhandled data type: {}").format(type_))
--- a/src/pages/photos/album/page_meta.py	Sun Apr 01 20:56:16 2018 +0200
+++ b/src/pages/photos/album/page_meta.py	Mon Apr 02 09:09:43 2018 +0200
@@ -20,5 +20,5 @@
     return files_page.prepare_render(self, request)
 
 def on_data_post(self, request):
-    blog_page = self.getPageByName(u'blog')
+    blog_page = self.getPageByName(u'blog_view')
     return blog_page.on_data_post(self, request)
--- a/src/pages/tickets/view/page_meta.py	Sun Apr 01 20:56:16 2018 +0200
+++ b/src/pages/tickets/view/page_meta.py	Mon Apr 02 09:09:43 2018 +0200
@@ -58,7 +58,7 @@
 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)
     else:
         log.warning(_(u"Unhandled data type: {}").format(type_))