projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfcda2b
)
[IMP] don't make the diagram controller inherit from View, there's no point
author
Xavier Morel
<xmo@openerp.com>
Wed, 3 Apr 2013 12:11:06 +0000
(14:11 +0200)
committer
Xavier Morel
<xmo@openerp.com>
Wed, 3 Apr 2013 12:11:06 +0000
(14:11 +0200)
bzr revid: xmo@openerp.com-
20130403121106
-55vuku5w4r0mp25n
addons/web_diagram/controllers/main.py
patch
|
blob
|
history
diff --git
a/addons/web_diagram/controllers/main.py
b/addons/web_diagram/controllers/main.py
index
c598a7e
..
2efaab7
100644
(file)
--- a/
addons/web_diagram/controllers/main.py
+++ b/
addons/web_diagram/controllers/main.py
@@
-1,9
+1,10
@@
-import openerp
+from openerp.addons.web.http import Controller, jsonrequest
-class DiagramView(openerp.addons.web.controllers.main.View):
+
+class Diagram(Controller):
_cp_path = "/web_diagram/diagram"
- @openerp.addons.web.http.jsonrequest
+ @jsonrequest
def get_diagram_info(self, req, id, model, node, connector,
src_node, des_node, label, **kw):