[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
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user