--- a/server/migractions.py Tue Oct 06 18:14:54 2009 +0200
+++ b/server/migractions.py Tue Oct 06 18:15:05 2009 +0200
@@ -958,7 +958,7 @@
if commit:
self.commit()
- @deprecated('use sync_schema_props_perms(ertype, syncprops=False)')
+ @deprecated('[3.2] use sync_schema_props_perms(ertype, syncprops=False)')
def cmd_synchronize_permissions(self, ertype, commit=True):
self.cmd_sync_schema_props_perms(ertype, syncprops=False, commit=commit)
@@ -995,7 +995,7 @@
return rset.get_entity(0, 0)
return self.cmd_add_workflow('%s workflow' % ';'.join(etypes), etypes)
- @deprecated('use add_workflow and Workflow.add_state method')
+ @deprecated('[3.5] use add_workflow and Workflow.add_state method')
def cmd_add_state(self, name, stateof, initial=False, commit=False, **kwargs):
"""method to ease workflow definition: add a state for one or more
entity type(s)
@@ -1006,7 +1006,7 @@
self.commit()
return state.eid
- @deprecated('use add_workflow and Workflow.add_transition method')
+ @deprecated('[3.5] use add_workflow and Workflow.add_transition method')
def cmd_add_transition(self, name, transitionof, fromstates, tostate,
requiredgroups=(), conditions=(), commit=False, **kwargs):
"""method to ease workflow definition: add a transition for one or more
@@ -1019,7 +1019,7 @@
self.commit()
return tr.eid
- @deprecated('use Transition.set_transition_permissions method')
+ @deprecated('[3.5] use Transition.set_transition_permissions method')
def cmd_set_transition_permissions(self, treid,
requiredgroups=(), conditions=(),
reset=True, commit=False):
@@ -1032,7 +1032,7 @@
if commit:
self.commit()
- @deprecated('use entity.fire_transition("transition") or entity.change_state("state")')
+ @deprecated('[3.5] 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)