Hi, Ferdinand, Maybe oe script is a better approach:
https://doc.openerp.com/trunk/server/commands/ Regards. 2013/10/25 Ferdinand <off...@chricar.at> > hello! > > starting the openerp server never starts cron jobs etc. > we suggest to add some code like this to the start script which wakes up > all these jobs > > the user start has no rights, but connecting > any other sugestion? > > ************************** > import xmlrpclib > > username = 'start' #the user > pwd = 'xxxxx' #the password of the user > dbname = 'yyyyy #the database > > # Get the uid > sock_common = xmlrpclib.ServerProxy ('https://localhost:4443/** > xmlrpc/common <https://localhost:4443/xmlrpc/common>') > uid = sock_common.login(dbname, username, pwd) > > #replace localhost with the address of the server > sock = > xmlrpclib.ServerProxy('https:/**/localhost:4443/xmlrpc/object<https://localhost:4443/xmlrpc/object> > '**) > > args = [('login', '=', 'admin')] #query clause > ids = sock.execute(dbname, uid, pwd, 'res.users', 'search', args) > > print ids > > -- > Ferdinand > > > ______________________________**_________________ > Mailing list: > https://launchpad.net/~**openerp-community<https://launchpad.net/~openerp-community> > Post to : > openerp-community@lists.**launchpad.net<openerp-community@lists.launchpad.net> > Unsubscribe : > https://launchpad.net/~**openerp-community<https://launchpad.net/~openerp-community> > More help : > https://help.launchpad.net/**ListHelp<https://help.launchpad.net/ListHelp> >
_______________________________________________ Mailing list: https://launchpad.net/~openerp-community Post to : openerp-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-community More help : https://help.launchpad.net/ListHelp