diff options
| author | Raphael Collet <rco@openerp.com> | 2013-02-12 16:42:30 +0100 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2013-02-12 16:42:30 +0100 |
| commit | e76befd6c6f697edffcf42a9020e794633a9b828 (patch) | |
| tree | f1e8d8769a67664dff7d68772923075b05882217 /doc | |
| parent | ede91ae7eef0d010d63314b1393ec11db064aec2 (diff) | |
| parent | ff31ff5ca9ea571250482d24523bb9a7cf111d0e (diff) | |
[MERGE] trunk-service-thu (remove the class openerp.netsvc.ExportService)
bzr revid: rco@openerp.com-20130212154230-y54s2rbetllwnh4q
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/index.rst | 1 | ||||
| -rw-r--r-- | doc/routing.rst | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/doc/index.rst b/doc/index.rst index a3d32805165..83b3837f73f 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -36,6 +36,7 @@ OpenERP Server API :maxdepth: 1 api_models.rst + routing.rst Changelog ''''''''' diff --git a/doc/routing.rst b/doc/routing.rst new file mode 100644 index 00000000000..6a4af3374a9 --- /dev/null +++ b/doc/routing.rst @@ -0,0 +1,27 @@ +.. _routing: + +Routing +======= + +.. versionchanged:: 7.1 + +The OpenERP framework, as an HTTP server, serves a few hard-coded URLs +(``models``, ``db``, ...) to expose RPC endpoints. When running the web addons +(which is almost always the case), it also serves URLs without them being RPC +endpoints. + +In older version of OpenERP, adding RPC endpoints was done by subclassing the +``openerp.netsvc.ExportService`` class. Adding WSGI handlers was done by +registering them with the :py:func:`openerp.wsgi.register_wsgi_handler` +function. + +Starting with OpenERP 7.1, exposing a new arbitrary WSGI handler is done with +the :py:func:`openerp.http.handler` decorator while adding an RPC endpoint is +done with the :py:func:`openerp.http.rpc` decorator. + +Routing decorators +------------------ + +.. automodule:: openerp.http + :members: + :undoc-members: |
