Ignore:
Timestamp:
15 Dec 2014, 12:49:01 (10 years ago)
Author:
Henrik Bettermann
Message:

Rename button and redirect after transition to context page.

Remove restwidget.py.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/browser.py

    r12245 r12246  
    298298            dict(name=x, title=y) for x, y in allowed_transitions]
    299299
    300     @action(_('Save'), style='primary')
    301     def save(self, **data):
     300    @action(_('Apply now'), style='primary')
     301    def apply(self, **data):
    302302        form = self.request.form
    303303        if 'transition' in form and form['transition']:
     
    306306            try:
    307307                wf_info.fireTransition(transition_id)
     308                self.flash(_("Transition '%s' executed." % transition_id))
    308309            except InvalidTransitionError, error:
    309310                self.flash(error, type="warning")
    310         return
     311            self.redirect(self.url(self.context))
     312        return
Note: See TracChangeset for help on using the changeset viewer.