diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-10-11 11:11:52 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-10-11 12:09:27 +0200 |
| commit | 95280245367da42fead8be9892079a5795171fd0 (patch) | |
| tree | 072b5191d1ee1e30e8b5fa1cf23f8e5353a3c06e /doc/reference/http.rst | |
| parent | acaf0f1e190326775e5bcd93daf4146e320e27e5 (diff) | |
[FIX] doc: building correctly autoclass references
Diffstat (limited to 'doc/reference/http.rst')
| -rw-r--r-- | doc/reference/http.rst | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/reference/http.rst b/doc/reference/http.rst index e6946beda49..9dbb61f7727 100644 --- a/doc/reference/http.rst +++ b/doc/reference/http.rst @@ -9,28 +9,28 @@ Web Controllers Routing ======= -.. autofunction:: openerp.http.route +.. autofunction:: odoo.http.route .. _reference/http/request: Request ======= -The request object is automatically set on :data:`openerp.http.request` at +The request object is automatically set on :data:`odoo.http.request` at the start of the request -.. autoclass:: openerp.http.WebRequest +.. autoclass:: odoo.http.WebRequest :members: :member-order: bysource -.. autoclass:: openerp.http.HttpRequest +.. autoclass:: odoo.http.HttpRequest :members: -.. autoclass:: openerp.http.JsonRequest +.. autoclass:: odoo.http.JsonRequest :members: Response ======== -.. autoclass:: openerp.http.Response +.. autoclass:: odoo.http.Response :members: :member-order: bysource @@ -44,7 +44,7 @@ Controllers =========== Controllers need to provide extensibility, much like -:class:`~openerp.models.Model`, but can't use the same mechanism as the +:class:`~odoo.models.Model`, but can't use the same mechanism as the pre-requisites (a database with loaded modules) may not be available yet (e.g. no database created, or no database selected). @@ -53,11 +53,11 @@ models: Controllers are created by :ref:`inheriting <python:tut-inheritance>` from -.. autoclass:: openerp.http.Controller +.. autoclass:: odoo.http.Controller -and defining methods decorated with :func:`~openerp.http.route`:: +and defining methods decorated with :func:`~odoo.http.route`:: - class MyController(openerp.http.Controller): + class MyController(odoo.http.Controller): @route('/some_url', auth='public') def handler(self): return stuff() @@ -71,7 +71,7 @@ class and override relevant methods, re-exposing them if necessary:: do_before() return super(Extension, self).handler() -* decorating with :func:`~openerp.http.route` is necessary to keep the method +* decorating with :func:`~odoo.http.route` is necessary to keep the method (and route) visible: if the method is redefined without decorating, it will be "unpublished" * the decorators of all methods are combined, if the overriding method's |
