Changeset 7085


Ignore:
Timestamp:
11 Nov 2011, 14:47:50 (13 years ago)
Author:
uli
Message:

Shorten transition handling a bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r7084 r7085  
    772772        self.context._p_changed = True
    773773        form = self.request.form
    774         if form.has_key('transition') and form['transition']:
    775             transition_id = form['transition']
    776             self.wf_info.fireTransition(transition_id)
     774        trans_id = form.get('transition', None)
     775        if trans_id:
     776            self.wf_info.fireTransition(trans_id)
    777777        self.flash('Form has been saved.')
    778778        ob_class = self.__implemented__.__name__.replace('waeup.sirp.','')
Note: See TracChangeset for help on using the changeset viewer.