X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=openerp%2F__init__.py;h=521a9ef2dd8b2ad37f83c8d68462f302a93ae8c8;hb=1b0bfd1044dc00fcba9ea859cd72259b85e1b11a;hp=9026c7be90fc8a02926cd1a7ea0d47640623514b;hpb=94b86a7bf60eb828cb2dd024a6f0cd0402ca2c20;p=odoo%2Fodoo.git diff --git a/openerp/__init__.py b/openerp/__init__.py index 9026c7b..521a9ef2 100644 --- a/openerp/__init__.py +++ b/openerp/__init__.py @@ -22,6 +22,8 @@ """ OpenERP core library. """ +# The hard-coded super-user id (a.k.a. administrator, or root user). +SUPERUSER_ID = 1 import addons import conf @@ -43,5 +45,12 @@ 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: