[FIX] developer/http: adapt to recent httppocalypse changes

See https://github.com/odoo/odoo/pull/78857

closes odoo/documentation#1640

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
Victor Feyens 2022-02-28 12:24:23 +00:00
parent a75c78e9d4
commit d4367c4d9a
2 changed files with 9 additions and 6 deletions

View File

@ -56,7 +56,7 @@ API
Routing
-------
.. autofunction:: odoo.http.route
.. autodecorator:: odoo.http.route
.. _reference/http/request:
@ -64,15 +64,18 @@ Request
-------
The request object is automatically set on :data:`odoo.http.request` at
the start of the request
the start of the request.
.. autoclass:: odoo.http.WebRequest
.. autoclass:: odoo.http.Request
:members:
:member-order: bysource
.. autoclass:: odoo.http.HttpRequest
.. autoclass:: odoo.http.JsonRPCDispatcher
:members:
.. autoclass:: odoo.http.JsonRequest
:member-order: bysource
.. autoclass:: odoo.http.HttpDispatcher
:members:
:member-order: bysource
Response
--------

View File

@ -525,7 +525,7 @@ At a deeper level than the previous helper is the ``render`` method on
Sets up a number of default values in the rendering context:
``request``
the current :class:`~odoo.http.WebRequest` object, if any
the current :class:`~odoo.http.Request` object, if any
``debug``
whether the current request (if any) is in ``debug`` mode
:func:`quote_plus <werkzeug.urls.url_quote_plus>`