--- a/entities/wfobjs.py Thu Oct 15 11:20:26 2009 +0200
+++ b/entities/wfobjs.py Mon Oct 19 15:16:41 2009 +0200
@@ -446,15 +446,12 @@
kwargs['comment'] = comment
if commentformat is not None:
kwargs['comment_format'] = commentformat
- args = [('wf_info_for', 'E')]
- kwargs['E'] = self.eid
+ kwargs['wf_info_for'] = self
if treid is not None:
- args.append( ('by_transition', 'T') )
- kwargs['T'] = treid
+ kwargs['by_transition'] = self.req.entity_from_eid(treid)
if tseid is not None:
- args.append( ('to_state', 'S') )
- kwargs['S'] = tseid
- return self._cw.create_entity('TrInfo', *args, **kwargs)
+ kwargs['to_state'] = self.req.entity_from_eid(tseid)
+ return self._cw.create_entity('TrInfo', **kwargs)
def fire_transition(self, tr, comment=None, commentformat=None):
"""change the entity's state by firing transition of the given name in