# HG changeset patch # User Denis Laxalde # Date 1553272350 -3600 # Node ID 623e9dd2977f5e7cd11f62c6cf3f766972ad479c # Parent 10159a3d1d7236988c6fa590298b661cdb9b0307 Drop deprecated "boxes" and "contentnavigation" registries diff -r 10159a3d1d72 -r 623e9dd2977f cubicweb/cwvreg.py --- a/cubicweb/cwvreg.py Fri Mar 22 17:29:15 2019 +0100 +++ b/cubicweb/cwvreg.py Fri Mar 22 17:32:30 2019 +0100 @@ -21,7 +21,6 @@ import sys from os.path import join, dirname, realpath -from warnings import warn from datetime import datetime, date, time, timedelta from functools import reduce @@ -295,21 +294,6 @@ return thisctxcomps -class BwCompatCWRegistry(object): - def __init__(self, vreg, oldreg, redirecttoreg): - self.vreg = vreg - self.oldreg = oldreg - self.redirecto = redirecttoreg - - def __getattr__(self, attr): - warn('[3.10] you should now use the %s registry instead of the %s registry' - % (self.redirecto, self.oldreg), DeprecationWarning, stacklevel=2) - return getattr(self.vreg[self.redirecto], attr) - - def clear(self): pass - def initialization_completed(self): pass - - class CWRegistryStore(RegistryStore): """Central registry for the cubicweb instance, extending the generic RegistryStore with some cubicweb specific stuff. @@ -366,8 +350,6 @@ sys.path.remove(CW_SOFTWARE_ROOT) self.schema = None self.initialized = False - self['boxes'] = BwCompatCWRegistry(self, 'boxes', 'ctxcomponents') - self['contentnavigation'] = BwCompatCWRegistry(self, 'contentnavigation', 'ctxcomponents') def setdefault(self, regid): try: