Changeset 9398 for main/waeup.kofa/trunk
- Timestamp:
- 23 Oct 2012, 19:22:22 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r9217 r9398 978 978 # We can thus store utc. 979 979 self.context.application_date = datetime.utcnow() 980 self.context.locked = True981 980 self.flash(_('Form has been submitted.')) 982 981 self.redirect(self.url(self.context)) -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicantcopier.py
r9119 r9398 80 80 (success, msg) = self.applicant.createStudent() 81 81 self.assertTrue('created' in msg) 82 # The applicant is locked 83 self.assertTrue(self.applicant.locked) 82 84 student_id = translate(msg, 'waeup.kofa').split()[1] 83 85 # View student container just created -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r9178 r9398 852 852 self.browser.getControl("Save").click() 853 853 # The form is locked. 854 self.assertTrue(self.applicant.locked) 854 855 self.assertTrue( 855 856 'The requested form is locked' in self.browser.contents) -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/workflow.py
r9120 r9398 186 186 if event.transition.transition_id == 'create': 187 187 msg += ' (%s)' % obj.student_id 188 obj.locked = True 189 if event.transition.transition_id == 'submit': 190 obj.locked = True 188 191 history = IObjectHistory(obj) 189 192 history.addMessage(msg)
Note: See TracChangeset for help on using the changeset viewer.