summaryrefslogtreecommitdiff
path: root/addons/web_graph/controllers
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2012-05-07 11:51:47 +0200
committerFabien Pinckaers <fp@tinyerp.com>2012-05-07 11:51:47 +0200
commit63b583aead9ac20961eab1c6c2cd5b3ada8e26f4 (patch)
treef5bf5a6517f31e1b6198b9e4a5d307e0bd72214e /addons/web_graph/controllers
parent76b1514392a4dee3fd07ec89a7aa5de3ef88ca16 (diff)
[IMP] graphs code
bzr revid: fp@tinyerp.com-20120507095147-qxelcvv2m12t50l4
Diffstat (limited to 'addons/web_graph/controllers')
-rw-r--r--addons/web_graph/controllers/graph.py50
1 files changed, 25 insertions, 25 deletions
diff --git a/addons/web_graph/controllers/graph.py b/addons/web_graph/controllers/graph.py
index f7af6180e41..8c09a74ccae 100644
--- a/addons/web_graph/controllers/graph.py
+++ b/addons/web_graph/controllers/graph.py
@@ -4,28 +4,28 @@ try:
except ImportError:
import web.common.http as openerpweb
-WIDGET_CONTENT_PATTERN = """<!DOCTYPE html>
-<html>
- <head><title>[[Widget %(id)d]]</title></head>
- <body>
- %(content)s
- <script type="text/javascript">
- var load = window.onload;
- window.onload = function () {
- if (load) {
- load();
- }
- window.frameElement.style.height = document.height + 'px';
- }
- </script>
- </body>
-</html>
-"""
-class Widgets(openerpweb.Controller):
- _cp_path = '/web_dashboard/widgets'
-
- @openerpweb.httprequest
- def content(self, request, widget_id):
- return WIDGET_CONTENT_PATTERN % request.session.model('res.widget').read(
- [int(widget_id)], ['content'], request.session.eval_context(request.context)
- )[0]
+#WIDGET_CONTENT_PATTERN = """<!DOCTYPE html>
+#<html>
+# <head><title>[[Widget %(id)d]]</title></head>
+# <body>
+# %(content)s
+# <script type="text/javascript">
+# var load = window.onload;
+# window.onload = function () {
+# if (load) {
+# load();
+# }
+# window.frameElement.style.height = document.height + 'px';
+# }
+# </script>
+# </body>
+#</html>
+#"""
+#class Widgets(openerpweb.Controller):
+# _cp_path = '/web_dashboard/widgets'
+#
+# @openerpweb.httprequest
+# def content(self, request, widget_id):
+# return WIDGET_CONTENT_PATTERN % request.session.model('res.widget').read(
+# [int(widget_id)], ['content'], request.session.eval_context(request.context)
+# )[0]