a guest Nov 30th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- celery = Celery('task')
- celery_app.conf.TRYTON_DATABASE = 'asor'
- celery_app.conf.TRYTON_CONF = '/home/andrespoliti/asor-tryton-implementacion/trytond/etc/trytond.conf'
- def test_task(user_id):
- User = Pool().get('res.user')
- user = User(user_id)
- print 'hello world, %s' % user.name
RAW Paste Data