From 709f2506ff40d799aada58df74dd78522d965868 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 23 Nov 2012 12:39:32 +0100 Subject: [REM] server-side eval_domain_and_context bzr revid: xmo@openerp.com-20121123113932-siz0u2vp2u7z6wk2 --- addons/web/doc/rpc.rst | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'addons/web/doc/rpc.rst') 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`` -- cgit v1.2.3