diff options
| author | Olivier Dony <odo@openerp.com> | 2011-12-13 17:15:54 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2011-12-13 17:15:54 +0100 |
| commit | 9835cebe195bc9ca9bffd5d4e2cba680d366b82b (patch) | |
| tree | 441881a902a8f01fea04a97d76f6bbc3b35e6669 /addons/web_rpc/static/src | |
| parent | 020c0927e43b55f897fb4a990db4db051c8a55d3 (diff) | |
| parent | 5ea774f883f1ac71ca98906a5ec5811b7e55e132 (diff) | |
[MERGE] Use the new authenticate() API instead of login()
Using the new authenticate() API instead allows to pass
a user-agent environment along with the credentials.
The main use for the UA environment at this point is
to pass the base URL used to login, so that the server
may initialize its "web.base.url" global config parameters
bzr revid: odo@openerp.com-20111213161554-jbtrp94aatcnibne
Diffstat (limited to 'addons/web_rpc/static/src')
| -rw-r--r-- | addons/web_rpc/static/src/example.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_rpc/static/src/example.html b/addons/web_rpc/static/src/example.html index 724de9d2885..fb5d12f73e3 100644 --- a/addons/web_rpc/static/src/example.html +++ b/addons/web_rpc/static/src/example.html @@ -29,7 +29,7 @@ c._modules_loaded = true; // Hack to prevent loading of additional modules var s = new c.base.Session(); // setup a Session - s.session_login("web-trunk", "admin", "admin", function() { + s.login("web-trunk", "admin", "admin", function() { var ds = new c.base.DataSetSearch(s, "ir.model"); // DataSetSearch used to search, read ds.read_slice(['name','model'], {}, function(users){ |
