[wf] nicer deprecation warning 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 25 Aug 2009 13:33:32 +0200
branch3.5
changeset 2981 a7d9e7f7b41a
parent 2980 292387ed37f3
child 2982 1768dbe8e9b3
[wf] nicer deprecation warning
server/migractions.py
--- a/server/migractions.py	Tue Aug 25 13:33:03 2009 +0200
+++ b/server/migractions.py	Tue Aug 25 13:33:32 2009 +0200
@@ -1022,7 +1022,7 @@
         if commit:
             self.commit()
 
-    @deprecated('use entity.change_state("state")')
+    @deprecated('use entity.fire_transition("transition") or entity.change_state("state")')
     def cmd_set_state(self, eid, statename, commit=False):
         self.session.set_pool() # ensure pool is set
         self.session.entity_from_eid(eid).change_state(statename)