[5.0] Critical regression on 5.0.13 release, current_thread() doesn't exist in python2.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In last release of OpenERP server (5.0.13 release), a regression was introduced on this statement of sql_db.py: "from threading import current_thread" also on netsvc.py statement "threading.
current_thread should be replaced by "currentThread" that works on python2.4, python2.5, python2.6 and python2.7 at least (patch included).
Examples (Linux Mint 7; but tested on several machines [debian/
On Python 2.5 current_thread is not available:
$ python2.5
Python 2.5.4 (r254:67916, Jan 20 2010, 21:44:03)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from threading import current_thread
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name current_thread
>>> from threading import currentThread
>>>
On Python 2.6 it is:
$ python2.6
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from threading import current_thread # New in 2.6
>>> from threading import currentThread # Also works (deprecated?)
>>>
description: | updated |
summary: |
- [5.0] Critical regression, current_thread() doesn't exist in python2.5 + [5.0] Critical regression on 5.0.13 release, current_thread() doesn't + exist in python2.5 |
Revision: http:// bazaar. launchpad. net/~openerp/ openobject- server/ 5.0/revision/ 2099