diff options
| author | Antony Lesuisse <al@openerp.com> | 2012-10-10 22:44:51 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2012-10-10 22:44:51 +0200 |
| commit | 07e1fba67d44b7906ff42e5145aff3941e790c99 (patch) | |
| tree | 46fb16d6e87795dc9817af72edbbee4e375748b9 /addons/web_graph/controllers/graph.py | |
| parent | ceb6078a7739ab4a6a8c3ded9d5a80e33578fad6 (diff) | |
| parent | ae6ff0764b709880c458c54a850594db8eed795a (diff) | |
[MERGE] remove standalone web client
bzr revid: al@openerp.com-20121010204451-nq3eatsl1x9zi1cf
Diffstat (limited to 'addons/web_graph/controllers/graph.py')
| -rw-r--r-- | addons/web_graph/controllers/graph.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/addons/web_graph/controllers/graph.py b/addons/web_graph/controllers/graph.py index e5c15898155..21ec7d6e973 100644 --- a/addons/web_graph/controllers/graph.py +++ b/addons/web_graph/controllers/graph.py @@ -1,19 +1,12 @@ # -*- coding: utf-8 -*- -try: - # embedded - import openerp.addons.web.common.http as openerpweb - from openerp.addons.web.controllers.main import View -except ImportError: - # standalone - import web.common.http as openerpweb - from web.controllers.main import View +import openerp from lxml import etree -class GraphView(View): +class GraphView(openerp.addons.web.controllers.main.View): _cp_path = '/web_graph/graph' - @openerpweb.jsonrequest + @openerp.addons.web.http.jsonrequest def data_get(self, req, model=None, domain=[], context={}, group_by=[], view_id=False, orientation=False, stacked=False, mode="bar", **kwargs): obj = req.session.model(model) |
