From 536339ce2d92c43b7b35b30db524f539005bef6e Mon Sep 17 00:00:00 2001 From: Laurent Mignon Date: Tue, 3 Feb 2015 09:21:28 +0100 Subject: [PATCH] [IMP] Remove obsolete code Since https://github.com/odoo/odoo/pull/3097 is merged in odoo, the 'blog_post' method can be removed from the controller. The initial order defined on 'blog.post' is now used for the loop through articles. (see https://github.com/odoo/odoo/commit/6451a553c0108cccc2d5cef3c54108d358473444 ) --- website_blog_mgmt/controllers/main.py | 126 -------------------------- 1 file changed, 126 deletions(-) diff --git a/website_blog_mgmt/controllers/main.py b/website_blog_mgmt/controllers/main.py index 9bb4cf2e68..58b890bf24 100644 --- a/website_blog_mgmt/controllers/main.py +++ b/website_blog_mgmt/controllers/main.py @@ -1,13 +1,9 @@ # -*- coding: utf-8 -*- -# include bug fix from rgo-odoo https://github.com/odoo/odoo/pull/3097 -# + remove specified order when calling blog_post.search from openerp.addons.web import http from openerp.addons.web.http import request from openerp.addons.website_blog.controllers.main import WebsiteBlog from openerp.addons.website_blog.controllers.main import QueryURL -from openerp.addons.website.models.website import slug -from openerp import SUPERUSER_ID class WebsiteBlog(WebsiteBlog): @@ -93,125 +89,3 @@ def blog(self, blog=None, tag=None, page=1, **opt): response = request.website.render( "website_blog.blog_post_short", values) return response - - @http.route([ - '''/blog//post/