From 16ac84af68d91b177394a2249f8b866e45ce3de3 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Thu, 19 May 2011 09:39:35 +0200 Subject: [PATCH] [REF] moved openerp/registry/manager.py => openerp/modules/registry.py - Maybe it should be called registries.py... Argh, consistency... bzr revid: vmt@openerp.com-20110519073935-81kwuhlqcxxw1z32 --- openerp/__init__.py | 1 - .../manager.py => modules/registry.py} | 10 ++++--- openerp/pooler.py | 2 +- openerp/registry/__init__.py | 29 ------------------- 4 files changed, 7 insertions(+), 35 deletions(-) rename openerp/{registry/manager.py => modules/registry.py} (94%) delete mode 100644 openerp/registry/__init__.py diff --git a/openerp/__init__.py b/openerp/__init__.py index 63016a520ee..a3cd4b3c00a 100644 --- a/openerp/__init__.py +++ b/openerp/__init__.py @@ -32,7 +32,6 @@ import netsvc import osv import pooler import pychart -import registry import release import report import run_tests diff --git a/openerp/registry/manager.py b/openerp/modules/registry.py similarity index 94% rename from openerp/registry/manager.py rename to openerp/modules/registry.py index ff2cc235bb2..3b11219d5a5 100644 --- a/openerp/registry/manager.py +++ b/openerp/modules/registry.py @@ -19,10 +19,7 @@ # ############################################################################## -""" Model registries manager. - - The manager is responsible for creation and deletion of bound model - registries (essentially database connection/model registry pairs). +""" Models registries. """ @@ -37,7 +34,12 @@ class BoundRegistry(object): class RegistryManager(object): + """ Model registries manager. + The manager is responsible for creation and deletion of bound model + registries (essentially database connection/model registry pairs). + + """ # TODO maybe should receive the addons paths def __init__(self): diff --git a/openerp/pooler.py b/openerp/pooler.py index 2a038ba833c..aace66a5c84 100644 --- a/openerp/pooler.py +++ b/openerp/pooler.py @@ -25,7 +25,7 @@ """ -from openerp.registry.manager import RegistryManager +from openerp.modules.registry import RegistryManager _Registries = None diff --git a/openerp/registry/__init__.py b/openerp/registry/__init__.py deleted file mode 100644 index 5ac650bc771..00000000000 --- a/openerp/registry/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- 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 . -# -############################################################################## - -""" Modules registries. - -""" - -import manager - - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: