# HG changeset patch # User Aurelien Campeas # Date 1357839103 -3600 # Node ID 7021bba2dcf29b24932b44d6db0e7040f2f737a7 # Parent ad5a3ff57255444ab517403fde6f5d50967b2067 [appobject] cleanup module (prepares #2406609) * remove unused imports * break long lines diff -r ad5a3ff57255 -r 7021bba2dcf2 appobject.py --- a/appobject.py Thu Jan 17 14:29:12 2013 +0100 +++ b/appobject.py Thu Jan 10 18:31:43 2013 +0100 @@ -31,25 +31,25 @@ """ __docformat__ = "restructuredtext en" -import types from logging import getLogger -from warnings import warn 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, 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') +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):