summaryrefslogtreecommitdiff
path: root/doc/howtos/website/basic-controller
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2015-01-28 16:13:31 +0100
committerXavier Morel <xmo@odoo.com>2015-01-28 16:14:41 +0100
commit205143cc32e96166a523e6b3f422c014ba5a8d24 (patch)
treef945f02637f11383423de3364eeec788639f0984 /doc/howtos/website/basic-controller
parentd17f22cde77fd6dd0fb968b1b34883c56648e93e (diff)
[IMP] doc: update website to scaffold
Diffstat (limited to 'doc/howtos/website/basic-controller')
-rw-r--r--doc/howtos/website/basic-controller35
1 files changed, 19 insertions, 16 deletions
diff --git a/doc/howtos/website/basic-controller b/doc/howtos/website/basic-controller
index 96f67b46508..7b29c58f013 100644
--- a/doc/howtos/website/basic-controller
+++ b/doc/howtos/website/basic-controller
@@ -1,19 +1,22 @@
# HG changeset patch
# Parent 78b4476f35cbef86ee4f858daf843e3b932fb9fa
-diff -r 78b4476f35cb -r d5ad2ad84a5d academy/__init__.py
---- a/academy/__init__.py Mon Aug 11 16:09:21 2014 +0200
-+++ b/academy/__init__.py Mon Aug 11 16:12:38 2014 +0200
-@@ -0,0 +1,1 @@
-+from . import controllers
-diff -r 78b4476f35cb -r d5ad2ad84a5d academy/controllers.py
---- /dev/null Thu Jan 01 00:00:00 1970 +0000
-+++ b/academy/controllers.py Mon Aug 11 16:12:38 2014 +0200
-@@ -0,0 +1,8 @@
-+# -*- coding: utf-8 -*-
-+from openerp import http
-+
+# Parent 0a4f5e3206a0738201a40d2d1a88f41fdbbc98bf
+
+diff --git a/academy/controllers.py b/academy/controllers.py
+--- a/academy/controllers.py
++++ b/academy/controllers.py
+@@ -1,10 +1,10 @@
+ # -*- coding: utf-8 -*-
+ from openerp import http
+
+-# class Academy(http.Controller):
+-# @http.route('/academy/academy/', auth='public')
+-# def index(self, **kw):
+-# return "Hello, world"
+class Academy(http.Controller):
-+ @http.route('/academy/', auth='public')
-+ def index(self):
-+ return "Hello, world!"
-+
++ @http.route('/academy/academy/', auth='public')
++ def index(self, **kw):
++ return "Hello, world"
+
+ # @http.route('/academy/academy/objects/', auth='public')
+ # def list(self, **kw):