From f04e6de2e729c8d638f6589f77abdfa4535b110e Mon Sep 17 00:00:00 2001 From: Richard Mathot Date: Tue, 3 Jun 2014 16:34:30 +0200 Subject: [FIX][IMP] Make partner maps work properly [FIX] website*: unfuck buggy controllers [IMP] website*: display GoogleMap in a human-usable interface [IMP] website_google_map: large module cleaning - There is now only one controller, data is sent once for all! - Map is now fully resizable in its hosting template - HTML/CSS cleaning - JavaScript is now human-readable ;-) --- addons/website_google_map/controllers/__init__.py | 1 - addons/website_google_map/controllers/main.py | 80 ++++++++++++++--------- 2 files changed, 48 insertions(+), 33 deletions(-) (limited to 'addons/website_google_map/controllers') diff --git a/addons/website_google_map/controllers/__init__.py b/addons/website_google_map/controllers/__init__.py index e11f9ba81bb..cbcfe6fc8a0 100644 --- a/addons/website_google_map/controllers/__init__.py +++ b/addons/website_google_map/controllers/__init__.py @@ -1,3 +1,2 @@ import main -# vim:expandtab:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/website_google_map/controllers/main.py b/addons/website_google_map/controllers/main.py index 9de241a00fd..efddba1b10f 100644 --- a/addons/website_google_map/controllers/main.py +++ b/addons/website_google_map/controllers/main.py @@ -1,48 +1,64 @@ # -*- coding: utf-8 -*- -import openerp +import json +from openerp import SUPERUSER_ID from openerp.addons.web import http from openerp.addons.web.http import request -from datetime import datetime + class google_map(http.Controller): + ''' + This class generates on-the-fly partner maps that can be reused in every + website page. To do so, just use an ``