web/views/workflow.py
changeset 3524 a3431f4e2f40
parent 3503 06bced8edddf
parent 3513 c002f6488631
child 3659 993997b4b41d
equal deleted inserted replaced
3505:c0c7a944c00d 3524:a3431f4e2f40
    81         trinfo = self._cw.vreg['etypes'].etype_class('TrInfo')(self._cw)
    81         trinfo = self._cw.vreg['etypes'].etype_class('TrInfo')(self._cw)
    82         trinfo.eid = self._cw.varmaker.next()
    82         trinfo.eid = self._cw.varmaker.next()
    83         subform = self._cw.vreg['forms'].select('edition', self._cw, entity=trinfo,
    83         subform = self._cw.vreg['forms'].select('edition', self._cw, entity=trinfo,
    84                                             mainform=False)
    84                                             mainform=False)
    85         subform.field_by_name('by_transition').widget = fwdgs.HiddenInput()
    85         subform.field_by_name('by_transition').widget = fwdgs.HiddenInput()
    86         form.form_add_subform(subform)
    86         form.add_subform(subform)
    87         self.w(form.form_render(wf_info_for=entity.eid,
    87         self.w(form.form_render(wf_info_for=entity.eid,
    88                                 by_transition=transition.eid))
    88                                 by_transition=transition.eid))
    89 
    89 
    90     def redirectpath(self, entity):
    90     def redirectpath(self, entity):
    91         return entity.rest_path()
    91         return entity.rest_path()