cwvreg.py
changeset 2613 5e19c2bb370e
parent 2476 1294a6bdf3bf
child 2650 18aec79ec3a3
child 2651 3ad936634d2a
--- a/cwvreg.py	Fri Jul 31 19:18:33 2009 +0200
+++ b/cwvreg.py	Fri Jul 31 22:37:28 2009 +0200
@@ -9,7 +9,7 @@
 _ = unicode
 
 from logilab.common.decorators import cached, clear_cache
-from logilab.common.deprecation import  obsolete
+from logilab.common.deprecation import  deprecated
 
 from rql import RQLHelper
 
@@ -284,22 +284,22 @@
                 self.exception('error while trying to select %s view for %s',
                                vid, rset)
 
-    @obsolete("use .select_object('boxes', ...)")
+    @deprecated("use .select_object('boxes', ...)")
     def select_box(self, oid, *args, **kwargs):
         """return the most specific view according to the result set"""
         return self.select_object('boxes', oid, *args, **kwargs)
 
-    @obsolete("use .select_object('components', ...)")
+    @deprecated("use .select_object('components', ...)")
     def select_component(self, cid, *args, **kwargs):
         """return the most specific component according to the result set"""
         return self.select_object('components', cid, *args, **kwargs)
 
-    @obsolete("use .select_object('actions', ...)")
+    @deprecated("use .select_object('actions', ...)")
     def select_action(self, oid, *args, **kwargs):
         """return the most specific view according to the result set"""
         return self.select_object('actions', oid, *args, **kwargs)
 
-    @obsolete("use .select('views', ...)")
+    @deprecated("use .select('views', ...)")
     def select_view(self, __vid, req, rset=None, **kwargs):
         """return the most specific view according to the result set"""
         return self.select('views', __vid, req, rset=rset, **kwargs)