web/views/workflow.py
branchstable
changeset 4409 374401b9b64d
parent 4212 ab6573088b4a
child 4436 294e084f1263
equal deleted inserted replaced
4408:899b426087ab 4409:374401b9b64d
    47         transition = self.req.entity_from_eid(self.req.form['treid'])
    47         transition = self.req.entity_from_eid(self.req.form['treid'])
    48         form = self.get_form(entity, transition)
    48         form = self.get_form(entity, transition)
    49         self.w(form.error_message())
    49         self.w(form.error_message())
    50         self.w(u'<h4>%s %s</h4>\n' % (self.req._(transition.name),
    50         self.w(u'<h4>%s %s</h4>\n' % (self.req._(transition.name),
    51                                       entity.view('oneline')))
    51                                       entity.view('oneline')))
    52         msg = _('status will change from %(st1)s to %(st2)s') % {
    52         msg = self.req._('status will change from %(st1)s to %(st2)s') % {
    53             'st1': entity.printable_state,
    53             'st1': entity.printable_state,
    54             'st2': self.req._(transition.destination().name)}
    54             'st2': self.req._(transition.destination().name)}
    55         self.w(u'<p>%s</p>\n' % msg)
    55         self.w(u'<p>%s</p>\n' % msg)
    56         self.w(form.render(formvalues=dict(wf_info_for=entity.eid,
    56         self.w(form.render(formvalues=dict(wf_info_for=entity.eid,
    57                                            by_transition=transition.eid)))
    57                                            by_transition=transition.eid)))