diff options
Diffstat (limited to 'doc/howto/howto_website/basic-controller')
| -rw-r--r-- | doc/howto/howto_website/basic-controller | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/howto/howto_website/basic-controller b/doc/howto/howto_website/basic-controller new file mode 100644 index 00000000000..4415d9516bc --- /dev/null +++ b/doc/howto/howto_website/basic-controller @@ -0,0 +1,15 @@ +# HG changeset patch +# Parent 458a542843918f6899fe64bfe1cead00972ef68a + +diff --git a/controllers.py b/controllers.py +new file mode 100644 +--- /dev/null ++++ b/controllers.py +@@ -0,0 +1,7 @@ ++from openerp import http ++from openerp.addons.web.controllers import main ++ ++class Home(main.Home): ++ @http.route('/', auth='none') ++ def index(self): ++ return "Hello, world!" |
