[DOC] openerp.http: use sphinx domains.
authorVo Minh Thu <vmt@openerp.com>
Fri, 1 Feb 2013 15:13:54 +0000 (16:13 +0100)
committerVo Minh Thu <vmt@openerp.com>
Fri, 1 Feb 2013 15:13:54 +0000 (16:13 +0100)
bzr revid: vmt@openerp.com-20130201151354-uyxgyt0aw101a2mq

doc/routing.rst
openerp/http.py

index b2e93de..6a4af33 100644 (file)
@@ -12,9 +12,16 @@ 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 ``openerp.wsgi.register_wsgi_handler()`` function.
+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 ``openerp.http.handler`` decorator while adding an RPC endpoint is done
-with the ``openerp.http.rpc`` decorator.
+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:
index 004542f..e2f3024 100644 (file)
@@ -1,8 +1,8 @@
 # -*- coding: utf-8 -*-
 
 """
-Decorators to register WSGI and RPC endpoints handlers. See doc/routing.rst.
-# TODO use sphinx ref to doc/routing.rst.
+``openerp.http`` offers decorators to register WSGI and RPC endpoints handlers.
+See :ref:`routing`.
 """
 
 from . import service