summaryrefslogtreecommitdiff
path: root/addons/website_certification/controllers/main.py
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2015-05-27 09:22:40 +0200
committerYannick Tivisse <yti@odoo.com>2015-05-27 15:24:14 +0200
commit534d6b459ea29e6bda5c8b976cda743079254dae (patch)
treefcf78f56bcbb29b9f7c911667cc0a9be5b13fd4b /addons/website_certification/controllers/main.py
parente5d47c6af29ee07f22d89794961b0e95eee908dd (diff)
[IMP] Remove website_certification module
Diffstat (limited to 'addons/website_certification/controllers/main.py')
-rw-r--r--addons/website_certification/controllers/main.py49
1 files changed, 0 insertions, 49 deletions
diff --git a/addons/website_certification/controllers/main.py b/addons/website_certification/controllers/main.py
deleted file mode 100644
index 303af758a09..00000000000
--- a/addons/website_certification/controllers/main.py
+++ /dev/null
@@ -1,49 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-TODAY OpenERP S.A. <http://www.openerp.com>
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-##############################################################################
-
-
-from openerp.addons.web import http
-from openerp.addons.web.http import request
-
-
-class WebsiteCertifiedPartners(http.Controller):
-
- @http.route(['/certifications',
- '/certifications/<model("certification.type"):cert_type>'], type='http', auth='public',
- website=True)
- def certified_partners(self, cert_type=None, **post):
- cr, uid, context = request.cr, request.uid, request.context
- certification_obj = request.registry['certification.certification']
- cert_type_obj = request.registry['certification.type']
-
- domain = []
- if cert_type:
- domain.append(('type_id', '=', cert_type.id))
-
- certifications_ids = certification_obj.search(cr, uid, domain, context=context)
- certifications = certification_obj.browse(cr, uid, certifications_ids, context=context)
- types = cert_type_obj.browse(cr, uid, cert_type_obj.search(cr, uid, [], context=context), context=context)
- data = {
- 'certifications': certifications,
- 'types': types
- }
-
- return request.website.render("website_certification.certified_partners", data)