[vreg] fix deprecation messages
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 03 Aug 2009 15:56:27 +0200
changeset 2659 b6f6964bddd3
parent 2658 5535857eeaa5
child 2660 0d0924d75849
[vreg] fix deprecation messages
cwvreg.py
--- a/cwvreg.py	Mon Aug 03 15:42:47 2009 +0200
+++ b/cwvreg.py	Mon Aug 03 15:56:27 2009 +0200
@@ -380,19 +380,19 @@
     def possible_actions(self, req, rset=None, **kwargs):
         return self["actions"].possible_actions(req, rest=rset, **kwargs)
 
-    @deprecated("use .select_object('boxes', ...)")
+    @deprecated("use vreg['boxes'].select_object(...)")
     def select_box(self, oid, *args, **kwargs):
         return self['boxes'].select_object(oid, *args, **kwargs)
 
-    @deprecated("use .select_object('components', ...)")
+    @deprecated("use vreg['components'].select_object(...)")
     def select_component(self, cid, *args, **kwargs):
         return self['components'].select_object(cid, *args, **kwargs)
 
-    @deprecated("use .select_object('actions', ...)")
+    @deprecated("use vreg['actions'].select_object(...)")
     def select_action(self, oid, *args, **kwargs):
         return self['actions'].select_object(oid, *args, **kwargs)
 
-    @deprecated("use .select('views', ...)")
+    @deprecated("use vreg['views'].select(...)")
     def select_view(self, __vid, req, rset=None, **kwargs):
         return self['views'].select(__vid, req, rset=rset, **kwargs)