This website requires JavaScript.
Explore
Help
Sign In
NextERP
/
runbot
Watch
5
Star
0
Fork
0
You've already forked runbot
mirror of
https://github.com/odoo/runbot.git
synced
2025-03-15 23:45:44 +07:00
Code
Issues
Actions
Packages
Projects
Releases
Wiki
Activity
bb35b1cc9d
runbot
/
runbot_cla
/
__init__.py
2 lines
21 B
Python
Raw
Normal View
History
Unescape
Escape
[REF] runbot, runbot_cla: upgrade to Odoo 11.0 The previous code of runbot and runbot_cla was made for Odoo API version 8.0. This commit makes it work with Odoo API 11.0 and Python 3. Also, the present refactoring splits the code into multiple files to make it easier to read (I hope). The main change due to Python 3 is the job locking mechanism: Since PEP-446 file descriptors are non-inheritable by default. A new method (os.set_inheritable) was introduced to explicitely make fd inheritable. Also, the close_fds parameter of the subprocess.Popen method is now True by default. Finally, PEP-3151 changed the exception raised by fcntl.flock from IOError to OSError (and IOError became an alias of OSError). As a consequence of all that, the runbot locking mechanism to check if a job is finished was not working in python3.
2018-02-28 16:31:05 +07:00
from
.
import
runbot
Reference in New Issue
Copy Permalink