X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=openerp%2F__init__.py;h=521a9ef2dd8b2ad37f83c8d68462f302a93ae8c8;hb=1b0bfd1044dc00fcba9ea859cd72259b85e1b11a;hp=63016a520ee520f205b030afb1d107e2740aebaf;hpb=09079b0102047551cf45ecb0c2f9fec770c2222f;p=odoo%2Fodoo.git diff --git a/openerp/__init__.py b/openerp/__init__.py index 63016a5..521a9ef2 100644 --- a/openerp/__init__.py +++ b/openerp/__init__.py @@ -22,17 +22,17 @@ """ 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: