[entity] improve deprecation messages stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Fri, 17 May 2013 16:25:48 +0200
branchstable
changeset 8980 c0b82dbcf6a3
parent 8958 e864c54bcf95
child 8981 26fddf8d65d0
[entity] improve deprecation messages
entity.py
--- a/entity.py	Mon Apr 29 14:49:43 2013 +0200
+++ b/entity.py	Fri May 17 16:25:48 2013 +0200
@@ -1320,11 +1320,11 @@
 
     # deprecated stuff #########################################################
 
-    @deprecated('[3.16] use cw_set() instead')
+    @deprecated('[3.16] use cw_set() instead of set_attributes()')
     def set_attributes(self, **kwargs): # XXX cw_set_attributes
         self.cw_set(**kwargs)
 
-    @deprecated('[3.16] use cw_set() instead')
+    @deprecated('[3.16] use cw_set() instead of set_relations()')
     def set_relations(self, **kwargs): # XXX cw_set_relations
         """add relations to the given object. To set a relation where this entity
         is the object of the relation, use 'reverse_'<relation> as argument name.