summaryrefslogtreecommitdiff
path: root/addons/web_diagram/controllers
diff options
context:
space:
mode:
authorfwi-odoo <fwi@odoo.com>2016-07-22 13:04:13 +0200
committerThibault Delavallée <tde@openerp.com>2016-08-03 13:42:06 +0200
commit271ba327b461bfbb8a5d097cd5d875b0e29d80c2 (patch)
treef30031f11769f915a12ffe872a37a34c72313761 /addons/web_diagram/controllers
parentd8b652d706fcd9b89eb95f70aebb16926d0c5deb (diff)
[MOV][IMP] web_diagram: reorganize files, add license and clean imports
Diffstat (limited to 'addons/web_diagram/controllers')
-rw-r--r--addons/web_diagram/controllers/__init__.py3
-rw-r--r--addons/web_diagram/controllers/main.py14
2 files changed, 13 insertions, 4 deletions
diff --git a/addons/web_diagram/controllers/__init__.py b/addons/web_diagram/controllers/__init__.py
index 12a7e529b67..5d4b25db9c0 100644
--- a/addons/web_diagram/controllers/__init__.py
+++ b/addons/web_diagram/controllers/__init__.py
@@ -1 +1,4 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
from . import main
diff --git a/addons/web_diagram/controllers/main.py b/addons/web_diagram/controllers/main.py
index 40f5c9a5674..0b661623e3c 100644
--- a/addons/web_diagram/controllers/main.py
+++ b/addons/web_diagram/controllers/main.py
@@ -1,9 +1,15 @@
-import openerp
-from openerp.tools.safe_eval import safe_eval as eval
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
-class DiagramView(openerp.http.Controller):
+import odoo
+import odoo.http as http
- @openerp.http.route('/web_diagram/diagram/get_diagram_info', type='json', auth='user')
+from odoo.tools.safe_eval import safe_eval as eval
+
+
+class DiagramView(http.Controller):
+
+ @http.route('/web_diagram/diagram/get_diagram_info', type='json', auth='user')
def get_diagram_info(self, req, id, model, node, connector,
src_node, des_node, label, **kw):