web/views/workflow.py
branchstable
changeset 6690 7d68948015ba
parent 6473 2b09a410ff8e
child 6692 bbc3f7c9f8d9
equal deleted inserted replaced
6688:51ddb4842c56 6690:7d68948015ba
   102                                       entity.view('oneline')))
   102                                       entity.view('oneline')))
   103         msg = self._cw._('status will change from %(st1)s to %(st2)s') % {
   103         msg = self._cw._('status will change from %(st1)s to %(st2)s') % {
   104             'st1': entity.cw_adapt_to('IWorkflowable').printable_state,
   104             'st1': entity.cw_adapt_to('IWorkflowable').printable_state,
   105             'st2': self._cw._(transition.destination(entity).name)}
   105             'st2': self._cw._(transition.destination(entity).name)}
   106         self.w(u'<p>%s</p>\n' % msg)
   106         self.w(u'<p>%s</p>\n' % msg)
   107         self.w(form.render())
   107         form.render(w=self.w)
   108 
   108 
   109     def redirectpath(self, entity):
   109     def redirectpath(self, entity):
   110         return entity.rest_path()
   110         return entity.rest_path()
   111 
   111 
   112     def get_form(self, entity, transition, **kwargs):
   112     def get_form(self, entity, transition, **kwargs):