diff options
| author | tsabi <csaba.toth@i3rendszerhaz.hu> | 2012-11-29 12:41:32 +0100 |
|---|---|---|
| committer | tsabi <csaba.toth@i3rendszerhaz.hu> | 2012-11-29 12:41:32 +0100 |
| commit | 76ca47d4fd0bd178fd7dfd2ea5b534d4e878a6f5 (patch) | |
| tree | 32339ef0c6869f21bb757f8ab6bce7faf8028c6b /addons/web/doc/rpc.rst | |
| parent | e2435d4f004a20636aef8a8ee2cc03c8cfc3e78c (diff) | |
| parent | c7772fdd82105ddf60cbec2517753bf927ce19ed (diff) | |
[MERGE] trunk
bzr revid: csaba.toth@i3rendszerhaz.hu-20121129114132-gfe3sn1p5t0mzofm
Diffstat (limited to 'addons/web/doc/rpc.rst')
| -rw-r--r-- | addons/web/doc/rpc.rst | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/addons/web/doc/rpc.rst b/addons/web/doc/rpc.rst index db6fcb4fa4b..8c48a2f6eaa 100644 --- a/addons/web/doc/rpc.rst +++ b/addons/web/doc/rpc.rst @@ -257,16 +257,17 @@ method you want to call) and a mapping of attributes to values (applied as keyword arguments on the Python method [#]_). This function fetches the return value of the Python methods, converted to JSON. -For instance, to call the ``eval_domain_and_context`` of the -:class:`~web.controllers.main.Session` controller: +For instance, to call the ``resequence`` of the +:class:`~web.controllers.main.DataSet` controller: .. code-block:: javascript - openerp.connection.rpc('/web/session/eval_domain_and_context', { - domains: ds, - contexts: cs + openerp.connection.rpc('/web/dataset/resequence', { + model: some_model, + ids: array_of_ids, + offset: 42 }).then(function (result) { - // handle result + // resequenced on server }); .. [#] with a small twist: SQLAlchemy's ``orm.query.Query.group_by`` |
