1
1
# -*- coding: utf-8 -*-
2
##############################################################################
4
# Authors: Nemry Jonathan & Mignon Laurent
5
# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu)
8
# WARNING: This program as such is intended to be used by professional
9
# programmers who take the whole responsibility of assessing all potential
10
# consequences resulting from its eventual inadequacies and bugs.
11
# End users who are looking for a ready-to-use solution with commercial
12
# guarantees and support are strongly advised to contact a Free Software
15
# This program is free software: you can redistribute it and/or modify
16
# it under the terms of the GNU Affero General Public License as
17
# published by the Free Software Foundation, either version 3 of the
18
# License, or (at your option) any later version.
20
# This program is distributed in the hope that it will be useful,
21
# but WITHOUT ANY WARRANTY; without even the implied warranty of
22
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
# GNU Affero General Public License for more details.
25
# You should have received a copy of the GNU Affero General Public License
26
# along with this program. If not, see <http://www.gnu.org/licenses/>.
28
##############################################################################
10
from sys import maxint
14
import werkzeug.exceptions
16
import werkzeug.wrappers
17
32
from PIL import Image
20
from openerp.osv import fields
21
from openerp.addons.website.models import website
22
35
from openerp.addons.web import http
23
from openerp.addons.web.http import request, LazyResponse
25
37
logger = logging.getLogger(__name__)
54
66
window.parent['%s'](%s, %s);
55
67
</script>""" % (func, json.dumps(img_tag), json.dumps(message))
57
# vim:expandtab:tabstop=4:softtabstop=4:shiftwidth=4:
69
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: