From 367190fc82368d0415c3056a824f3ac4bbfde483 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 18 Oct 2013 14:11:23 +0200 Subject: [PATCH] [ADD] payment_acquirer controllers bzr revid: chm@openerp.com-20131018121123-or4sxzu1jdv5tjbd --- .../payment_acquirer/controllers/__init__.py | 1 + addons/payment_acquirer/controllers/main.py | 32 +++++++++++++++++++ .../security/ir.model.access.csv | 1 + 3 files changed, 34 insertions(+) create mode 100644 addons/payment_acquirer/controllers/__init__.py create mode 100644 addons/payment_acquirer/controllers/main.py create mode 100644 addons/payment_acquirer/security/ir.model.access.csv diff --git a/addons/payment_acquirer/controllers/__init__.py b/addons/payment_acquirer/controllers/__init__.py new file mode 100644 index 00000000000..039d9715fab --- /dev/null +++ b/addons/payment_acquirer/controllers/__init__.py @@ -0,0 +1 @@ +import main \ No newline at end of file diff --git a/addons/payment_acquirer/controllers/main.py b/addons/payment_acquirer/controllers/main.py new file mode 100644 index 00000000000..1aa84ebdbbc --- /dev/null +++ b/addons/payment_acquirer/controllers/main.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2013-Today OpenERP SA (). +# +# 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 . +# +############################################################################## + +from openerp.addons.web import http +from openerp.addons.web.http import request +from openerp.addons.website.models import website + + +class website_project(http.Controller): + + @website.route(['/payment_acquirer//'], type='http', auth="public") + def project(self, acquirer=None, **post): + obj = request.registry['payment.acquirer'] + return obj.transaction_feedback(request.cr, request.uid, acquirer, context=request.context, **post) diff --git a/addons/payment_acquirer/security/ir.model.access.csv b/addons/payment_acquirer/security/ir.model.access.csv new file mode 100644 index 00000000000..97dd8b917b8 --- /dev/null +++ b/addons/payment_acquirer/security/ir.model.access.csv @@ -0,0 +1 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink