web/views/workflow.py
changeset 10669 155c29e0ed1c
parent 10666 7f6b5f023884
child 10688 fa29f3628a1b
--- a/web/views/workflow.py	Tue Sep 15 17:10:58 2015 +0200
+++ b/web/views/workflow.py	Fri Sep 18 14:29:53 2015 +0200
@@ -116,7 +116,7 @@
             'changestate', self._cw, entity=entity, transition=transition,
             redirect_path=self.redirectpath(entity), **kwargs)
         trinfo = self._cw.vreg['etypes'].etype_class('TrInfo')(self._cw)
-        trinfo.eid = self._cw.varmaker.next()
+        trinfo.eid = next(self._cw.varmaker)
         subform = self._cw.vreg['forms'].select('edition', self._cw, entity=trinfo,
                                                 mainform=False)
         subform.field_by_name('wf_info_for', 'subject').value = entity.eid