2009-10-20 10:52:23 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2006-12-07 13:41:40 +00:00
|
|
|
##############################################################################
|
2013-01-17 15:50:03 +00:00
|
|
|
#
|
2009-10-14 12:32:15 +00:00
|
|
|
# OpenERP, Open Source Management Solution
|
|
|
|
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
2008-06-16 11:00:21 +00:00
|
|
|
#
|
2008-11-03 18:27:16 +00:00
|
|
|
# This program is free software: you can redistribute it and/or modify
|
2009-10-14 12:32:15 +00:00
|
|
|
# it under the terms of the GNU Affero General Public License as
|
|
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
|
|
# License, or (at your option) any later version.
|
2006-12-07 13:41:40 +00:00
|
|
|
#
|
2008-11-03 18:27:16 +00:00
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2009-10-14 12:32:15 +00:00
|
|
|
# GNU Affero General Public License for more details.
|
2006-12-07 13:41:40 +00:00
|
|
|
#
|
2009-10-14 12:32:15 +00:00
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
2013-01-17 15:50:03 +00:00
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2006-12-07 13:41:40 +00:00
|
|
|
#
|
|
|
|
##############################################################################
|
|
|
|
|
2011-04-20 10:26:27 +00:00
|
|
|
""" OpenERP core library.
|
|
|
|
|
|
|
|
"""
|
2011-09-26 09:01:56 +00:00
|
|
|
# The hard-coded super-user id (a.k.a. administrator, or root user).
|
|
|
|
SUPERUSER_ID = 1
|
2011-04-20 10:26:27 +00:00
|
|
|
|
2011-02-08 09:29:23 +00:00
|
|
|
import addons
|
2012-11-27 00:55:13 +00:00
|
|
|
import cli
|
2011-04-20 10:26:27 +00:00
|
|
|
import conf
|
2013-01-17 15:50:03 +00:00
|
|
|
import exceptions
|
2011-02-07 12:57:23 +00:00
|
|
|
import loglevels
|
2011-04-20 15:27:18 +00:00
|
|
|
import modules
|
2011-02-07 12:57:23 +00:00
|
|
|
import netsvc
|
|
|
|
import osv
|
2011-02-08 09:29:23 +00:00
|
|
|
import pooler
|
2011-02-07 12:57:23 +00:00
|
|
|
import release
|
2011-02-08 09:29:23 +00:00
|
|
|
import report
|
2011-02-07 12:57:23 +00:00
|
|
|
import run_tests
|
2011-02-08 09:29:23 +00:00
|
|
|
import service
|
2011-02-07 12:57:23 +00:00
|
|
|
import sql_db
|
|
|
|
import test
|
2011-02-08 09:29:23 +00:00
|
|
|
import tools
|
2011-02-07 12:57:23 +00:00
|
|
|
import workflow
|
2012-09-22 10:51:07 +00:00
|
|
|
# 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.
|
2012-09-24 10:36:48 +00:00
|
|
|
multi_process = False
|
2008-07-23 15:01:27 +00:00
|
|
|
|
|
|
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
|
|
|