# HG changeset patch # User Sylvain Thénault # Date 1264685392 -3600 # Node ID 53f5d52085b44428ea97d2ebd23159f6a35f5d95 # Parent 360c532070f58bf91412f9c32fbf4360500a9f63 add version number to deprecation warning diff -r 360c532070f5 -r 53f5d52085b4 entities/wfobjs.py --- a/entities/wfobjs.py Thu Jan 28 09:49:50 2010 +0100 +++ b/entities/wfobjs.py Thu Jan 28 14:29:52 2010 +0100 @@ -489,7 +489,7 @@ stateeid = statename.eid else: if not isinstance(statename, basestring): - warn('give a state name') + warn('[3.5] give a state name', DeprecationWarning) state = self.current_workflow.state_by_eid(statename) else: state = self.current_workflow.state_by_name(statename)