appobject.py
changeset 8240 506ab2e8aeca
parent 8190 2a3c1b787688
child 8654 7021bba2dcf2
--- a/appobject.py	Thu Feb 16 14:15:37 2012 +0100
+++ b/appobject.py	Thu Feb 16 14:23:24 2012 +0100
@@ -35,18 +35,21 @@
 from logging import getLogger
 from warnings import warn
 
-from logilab.common.deprecation import deprecated
+from logilab.common.deprecation import deprecated, class_renamed
 from logilab.common.decorators import classproperty
 from logilab.common.logging_ext import set_log_methods
 from logilab.common.registry import yes
 
 from cubicweb.cwconfig import CubicWebConfiguration
 # XXX for bw compat
-from logilab.common.registry import objectify_predicate, traced_selection
+from logilab.common.registry import objectify_predicate, traced_selection, Predicate
 
 
 objectify_selector = deprecated('[3.15] objectify_selector has been renamed to objectify_predicates in logilab.common.registry')(objectify_predicate)
 traced_selection = deprecated('[3.15] traced_selection has been moved to logilab.common.registry')(traced_selection)
+Selector = class_renamed(
+    'Selector', Predicate,
+    '[3.15] Selector has been renamed to Predicate in logilab.common.registry')
 
 @deprecated('[3.15] lltrace decorator can now be removed')
 def lltrace(func):