--- a/server/migractions.py Thu Feb 26 13:10:33 2009 +0100
+++ b/server/migractions.py Thu Feb 26 13:12:04 2009 +0100
@@ -905,6 +905,13 @@
if commit:
self.commit()
+ def cmd_set_state(self, eid, statename, commit=False):
+ self.session.set_pool() # ensure pool is set
+ entity = self.session.eid_rset(eid).get_entity(0, 0)
+ entity.change_state(entity.wf_state(statename).eid)
+ if commit:
+ self.commit()
+
# EProperty handling ######################################################
def cmd_property_value(self, pkey):