diff options
| author | Antony Lesuisse <al@openerp.com> | 2012-09-22 12:51:07 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2012-09-22 12:51:07 +0200 |
| commit | 4679680dba42a4071c8fbbc43a33e2e61bdb812e (patch) | |
| tree | 27149f115fd94d508a394d673b447f96cff21206 /openerp/__init__.py | |
| parent | f4a296e0289952f939d39b4b9836ca45dff9d247 (diff) | |
manual merge of multicorn
bzr revid: al@openerp.com-20120922105107-q02ogtsfudphzkl6
Diffstat (limited to 'openerp/__init__.py')
| -rw-r--r-- | openerp/__init__.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/openerp/__init__.py b/openerp/__init__.py index 5827b744cf8..2fd2a9812f9 100644 --- a/openerp/__init__.py +++ b/openerp/__init__.py @@ -38,11 +38,19 @@ import run_tests import service import sql_db import test -import tiny_socket import tools import wizard import workflow -import wsgi +# backward compatilbility +# TODO: This is for the web addons, can be removed later. +wsgi = service +wsgi.register_wsgi_handler = wsgi.wsgi_server.register_wsgi_handler +# 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 = True # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
