restore the original gevent detection
authorAntony Lesuisse <al@openerp.com>
Mon, 9 Sep 2013 23:19:46 +0000 (01:19 +0200)
committerAntony Lesuisse <al@openerp.com>
Mon, 9 Sep 2013 23:19:46 +0000 (01:19 +0200)
bzr revid: al@openerp.com-20130909231946-aglho23enxhfwm0i

openerp-gevent
openerp/__init__.py

index e1c9fa7..5504497 100755 (executable)
@@ -7,7 +7,5 @@ psycogreen.gevent.patch_psycopg()
 
 import openerp
 
-openerp.evented = True
-
 if __name__ == "__main__":
     openerp.cli.main()
index fe43983..a06c85d 100644 (file)
@@ -27,6 +27,8 @@ import sys
 
 # Is the server running with gevent.
 evented = False
+if sys.modules.get("gevent") is not None:
+    evented = True
 
 # 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