diff -r 3fa8c0cec760 -r 66472d85d548 server/migractions.py --- a/server/migractions.py Tue Aug 04 17:02:18 2009 +0200 +++ b/server/migractions.py Tue Aug 04 17:11:50 2009 +0200 @@ -914,7 +914,7 @@ 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 = self.session.entity_from_eid(eid) entity.change_state(entity.wf_state(statename).eid) if commit: self.commit()