[IMP] models: move prefetching of records back to method _prefetch_field
[odoo/odoo.git] / doc / routing.rst
1 .. _routing:
2
3 Routing
4 =======
5
6 .. versionchanged:: 7.1
7
8 The OpenERP framework, as an HTTP server, serves a few hard-coded URLs
9 (``models``, ``db``, ...) to expose RPC endpoints. When running the web addons
10 (which is almost always the case), it also serves URLs without them being RPC
11 endpoints.
12
13 In older version of OpenERP, adding RPC endpoints was done by subclassing the
14 ``openerp.netsvc.ExportService`` class. Adding WSGI handlers was done by
15 registering them with the :py:func:`openerp.wsgi.register_wsgi_handler`
16 function.
17
18 Starting with OpenERP 7.1, exposing a new arbitrary WSGI handler is done with
19 the :py:func:`openerp.http.handler` decorator while adding an RPC endpoint is
20 done with the :py:func:`openerp.http.rpc` decorator.
21
22 .. _routing-decorators:
23
24 Routing decorators
25 ------------------
26
27 .. automodule:: openerp.http
28    :members:
29    :undoc-members: