[IMP] cron: alternative implementation:
[odoo/odoo.git] / openerp / __init__.py
index 63016a5..521a9ef 100644 (file)
 """ OpenERP core library.
 
 """
+# The hard-coded super-user id (a.k.a. administrator, or root user).
+SUPERUSER_ID = 1
 
 import addons
 import conf
-import ir
 import loglevels
 import modules
 import netsvc
 import osv
 import pooler
 import pychart
-import registry
 import release
 import report
 import run_tests
@@ -43,6 +43,14 @@ import tiny_socket
 import tools
 import wizard
 import workflow
+import wsgi
+
+# Is the server running in multi-process mode (e.g. behind Gunicorn).
+# If this is True, the processes have to communicate some events,
+# e.g. database update or cache invalidation. Each process has also
+# its own copy of the data structure and we don't need to care about
+# locks between threads.
+multi_process = False
 
 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: