diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-06-21 14:15:10 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-06-21 14:15:10 +0200 |
| commit | 2fd53a468cf55d4d4beadd7f620677d172b5d3ed (patch) | |
| tree | 400950fd87fbf66bc589e1e848b4869aaf87e338 /addons/web/doc | |
| parent | c90e8119bb2f4e51f21fa2cb8ca633d5ddd8fb05 (diff) | |
multiple refactoring with authentication
bzr revid: nicolas.vanhoren@openerp.com-20130621121510-gx22b6j9pwsfe352
Diffstat (limited to 'addons/web/doc')
| -rw-r--r-- | addons/web/doc/web_controllers.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/web/doc/web_controllers.rst b/addons/web/doc/web_controllers.rst index c35bd66eef4..86ac0248e7e 100644 --- a/addons/web/doc/web_controllers.rst +++ b/addons/web/doc/web_controllers.rst @@ -135,12 +135,12 @@ Authorization Levels -------------------- By default, all methods can only be used by users logged into OpenERP (OpenERP uses cookies to track logged users). -There are some cases when you need to enable not-logged in users to access some methods. To do so, add the ``'noauth'`` -value to the ``authentication`` parameter of ``http.route()``: +There are some cases when you need to enable not-logged in users to access some methods. To do so, add the ``'db'`` +value to the ``auth`` parameter of ``http.route()``: :: - @http.route('/hello', type="http", authentication="noauth") + @http.route('/hello', type="http", auth="db") def hello(self): return "<div>Hello unknown user!</div>" @@ -158,7 +158,7 @@ want to override. Example that redefine the home page of your OpenERP applicatio import openerp.addons.web.controllers.main as main class Home2(main.Home): - @http.route('/', type="http", authentication="noauth") + @http.route('/', type="http", auth="db") def index(self): return "<div>This is my new home page.</div>" |
