From c2d5bf1bc35660a2e5d56552e8ab5c9d2ca99a0c Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 20 Jan 2014 14:13:10 +0100 Subject: [ADD] tutorial beginning blocked at introducing qweb template, ir.qweb lives in the registry but nodb -> no database with --db-filter there's a database in the session (kinda) but need to fetch it and manually get the corresponding registry... --- doc/howto/howto_website/basic-controller | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/howto/howto_website/basic-controller (limited to 'doc/howto/howto_website/basic-controller') 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!" -- cgit v1.2.3