diff options
| author | Jérome Maes <jem@openerp.com> | 2016-04-21 11:01:19 +0200 |
|---|---|---|
| committer | Jérome Maes <jem@openerp.com> | 2016-04-27 16:35:45 +0200 |
| commit | c5baaa3bdca7fb66dafb09e53cce1fe88365e817 (patch) | |
| tree | 01c5e59661728f325a926bae061544cf03c6194e /addons/google_account/controllers | |
| parent | 3e1fb87e93692a11b03e1bd815a0a04d7416b4c4 (diff) | |
[REF] google_account : code cleaning
- remove unused helpers
- add command in case of deeper refactoring one day ...
- better variable naming
- use contants for Google services urls
- add docstrings
Diffstat (limited to 'addons/google_account/controllers')
| -rw-r--r-- | addons/google_account/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/google_account/controllers/main.py b/addons/google_account/controllers/main.py index dd35c932a1b..71e0a86d4ce 100644 --- a/addons/google_account/controllers/main.py +++ b/addons/google_account/controllers/main.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. import json from werkzeug.utils import redirect @@ -12,7 +13,6 @@ class GoogleAuth(http.Controller): @http.route('/google_account/authentication', type='http', auth="none") def oauth2callback(self, **kw): """ This route/function is called by Google when user Accept/Refuse the consent of Google """ - state = json.loads(kw['state']) dbname = state.get('d') service = state.get('s') |
