[bw compat] add compatibility for import of former VRegistry
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 09 Feb 2012 13:22:49 +0100
changeset 8202 517fbaad0e6e
parent 8190 2a3c1b787688
child 8210 1d1cfc97f6b9
[bw compat] add compatibility for import of former VRegistry
vregistry.py
--- a/vregistry.py	Mon Jan 23 13:25:02 2012 +0100
+++ b/vregistry.py	Thu Feb 09 13:22:49 2012 +0100
@@ -16,5 +16,8 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 from warnings import warn
+from logilab.common.deprecation import class_moved
 warn('[3.15] moved to logilab.common.registry', DeprecationWarning, stacklevel=2)
 from logilab.common.registry import *
+
+VRegistry = class_moved(RegistryStore, old_name='VRegistry', message='[3.15] VRegistry moved to logilab.common.registry as RegistryStore')