Changeset 12246 for main/waeup.ikoba/trunk/src/waeup/ikoba/documents
- Timestamp:
- 15 Dec 2014, 12:49:01 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/documents
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/browser.py
r12245 r12246 298 298 dict(name=x, title=y) for x, y in allowed_transitions] 299 299 300 @action(_(' Save'), style='primary')301 def save(self, **data):300 @action(_('Apply now'), style='primary') 301 def apply(self, **data): 302 302 form = self.request.form 303 303 if 'transition' in form and form['transition']: … … 306 306 try: 307 307 wf_info.fireTransition(transition_id) 308 self.flash(_("Transition '%s' executed." % transition_id)) 308 309 except InvalidTransitionError, error: 309 310 self.flash(error, type="warning") 310 return 311 self.redirect(self.url(self.context)) 312 return -
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/tests/test_browser.py
r12243 r12246 167 167 self.browser.getLink("Transition").click() 168 168 self.browser.getControl(name="transition").value = ['retract'] 169 self.browser.getControl(" Save").click()169 self.browser.getControl("Apply now").click() 170 170 self.assertEqual(document.state, 'created') 171 171 … … 252 252 self.browser.getLink("Transition").click() 253 253 self.browser.getControl(name="transition").value = ['publish'] 254 self.browser.getControl(" Speichern").click()254 self.browser.getControl("Jetzt anwenden").click() 255 255 self.assertEqual(document.state, 'published') 256 256
Note: See TracChangeset for help on using the changeset viewer.