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/routing-basic | |
| parent | 97256fa1fba6c7d3d02962b5948158d17852cf43 (diff) | |
[ADD] doc: new documentation, with training tutorials, and new scaffolding
Diffstat (limited to 'doc/howtos/website/routing-basic')
| -rw-r--r-- | doc/howtos/website/routing-basic | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/howtos/website/routing-basic b/doc/howtos/website/routing-basic new file mode 100644 index 00000000000..15c19c632a5 --- /dev/null +++ b/doc/howtos/website/routing-basic @@ -0,0 +1,14 @@ +# HG changeset patch +# Parent 0795247fa6cbb63238941f3dd26a8b6144fa71ee +diff -r 0795247fa6cb -r e9d9740fa185 academy/controllers.py +--- a/academy/controllers.py Tue Aug 12 11:27:14 2014 +0200 ++++ b/academy/controllers.py Tue Aug 12 16:51:29 2014 +0200 +@@ -8,3 +8,8 @@ class Academy(http.Controller): + return http.request.render('academy.index', { + 'teachers': Teachers.search([]), + }) ++ ++ @http.route('/academy/<name>/', auth='public', website=True) ++ def teacher(self, name): ++ return '<h1>{}</h1>'.format(name) ++ |
