restore the original gevent detection
bzr revid: al@openerp.com-20130909231946-aglho23enxhfwm0i
This commit is contained in:
parent
65c0538a83
commit
082b1dc9fc
|
@ -7,7 +7,5 @@ psycogreen.gevent.patch_psycopg()
|
||||||
|
|
||||||
import openerp
|
import openerp
|
||||||
|
|
||||||
openerp.evented = True
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
openerp.cli.main()
|
openerp.cli.main()
|
||||||
|
|
|
@ -27,6 +27,8 @@ import sys
|
||||||
|
|
||||||
# Is the server running with gevent.
|
# Is the server running with gevent.
|
||||||
evented = False
|
evented = False
|
||||||
|
if sys.modules.get("gevent") is not None:
|
||||||
|
evented = True
|
||||||
|
|
||||||
# Make sure the OpenERP server runs in UTC. This is especially necessary
|
# Make sure the OpenERP server runs in UTC. This is especially necessary
|
||||||
# under Windows as under Linux it seems the real import of time is
|
# under Windows as under Linux it seems the real import of time is
|
||||||
|
|
Loading…
Reference in New Issue