equal
deleted
inserted
replaced
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() |