Changeset 851 for WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py
- Timestamp:
- 12 Nov 2006, 17:01:34 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py
r847 r851 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters=REQUEST, proceed=None, cpsdocument_edit_button=None, final_submit=None, action=None7 ##parameters=REQUEST, cpsdocument_edit_button=None, cpsdocument_edit_and_view_button=None, acknowledge=None 8 8 ##title= 9 9 # $Id$ … … 34 34 clear_doc = info['clear_doc'] 35 35 state = context.getStudentInfo()['review_state'] 36 if final_submit:37 wftool.doActionFor(info['clear'],'close')38 wftool.doActionFor(info['student'],'request_clearance')39 return REQUEST.RESPONSE.redirect("%s/student_index" % info['url'])40 36 41 37 is_valid, ds = clear_doc.validate(request=REQUEST, … … 48 44 args = {} 49 45 action = "/clearance_edit_form" 50 if cpsdocument_edit_button:51 if is_valid:46 if is_valid: 47 if cpsdocument_edit_button: 52 48 psm = 'Content changed.' 53 49 if ds.get('acknow'): 54 50 args['final_submit'] = "Finally Submit" 55 else: 56 args = getFormUidUrlArg(REQUEST) 57 psm = "Please correct your errors." 58 args['portal_status_message'] = psm 51 elif cpsdocument_edit_and_view_button: 52 if acknowledge: 53 wftool.doActionFor(info['clear'],'close') 54 wftool.doActionFor(info['student'],'request_clearance') 55 return REQUEST.RESPONSE.redirect("%s/student_index" % info['url']) 56 psm = "You didn't check the Acknowledgementbox" 57 else: 58 psm = "Please correct your errors." 59 args = getFormUidUrlArg(REQUEST) 60 args['portal_status_message'] = psm 59 61 if args: 60 62 url = clear.absolute_url() + action + '?' + urlencode(args)
Note: See TracChangeset for help on using the changeset viewer.