From e8df583f3b822562cf2264463fe26904ddaa0392 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Fri, 29 Apr 2011 09:50:30 +0200 Subject: [PATCH] [FIX] forgot to add new file. bzr revid: vmt@openerp.com-20110429075030-4o1vdtldc3rp3j1v --- openerp/conf/deprecation.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 openerp/conf/deprecation.py diff --git a/openerp/conf/deprecation.py b/openerp/conf/deprecation.py new file mode 100644 index 00000000000..53be31b46f9 --- /dev/null +++ b/openerp/conf/deprecation.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2011 OpenERP s.a. (). +# +# This program is free software: you can redistribute it and/or modify +# 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. +# +# 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 +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +""" Regroup variables for deprecated features. + +To keep the OpenERP server backward compatible with older modules, some +additional code is needed throughout the core library. This module keeps +track of those specific measures by providing variables that can be unset +by the user to check if her code is future proof. + +""" + +# If True, the Python modules inside the openerp namespace are made available +# without the 'openerp.' prefix. E.g. openerp.osv.osv and osv.osv refer to the +# same module. +# Introduced around 2011.02. +open_openerp_namespace = True + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: