← Back to team overview

openerp-community team mailing list archive

start script

 

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')
uid = sock_common.login(dbname, username, pwd)

#replace localhost with the address of the server
sock = xmlrpclib.ServerProxy('https://localhost:4443/xmlrpc/object')

args = [('login', '=', 'admin')] #query clause
ids = sock.execute(dbname, uid, pwd, 'res.users', 'search', args)

print ids

--
Ferdinand



Follow ups