diff options
| author | Raphael Collet <rco@openerp.com> | 2014-08-22 17:51:20 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2014-08-22 17:51:20 +0200 |
| commit | 2ad092b5e54fa39a906b38d9240e08b9800ea0da (patch) | |
| tree | 1879c2a6efe8ed1626d92635870aaff922306492 /doc/howtos/website/basic-controller | |
| parent | 97256fa1fba6c7d3d02962b5948158d17852cf43 (diff) | |
[ADD] doc: new documentation, with training tutorials, and new scaffolding
Diffstat (limited to 'doc/howtos/website/basic-controller')
| -rw-r--r-- | doc/howtos/website/basic-controller | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/howtos/website/basic-controller b/doc/howtos/website/basic-controller new file mode 100644 index 00000000000..96f67b46508 --- /dev/null +++ b/doc/howtos/website/basic-controller @@ -0,0 +1,19 @@ +# 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 ++ ++class Academy(http.Controller): ++ @http.route('/academy/', auth='public') ++ def index(self): ++ return "Hello, world!" ++ |
