Changeset 851 for WAeUP_SRP/trunk/skins/waeup_student/application_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/application_edit.py
r845 r851 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters=REQUEST, proceed=None, cpsdocument_edit_button=None, action=None7 ##parameters=REQUEST, cpsdocument_edit_button=None, cpsdocument_edit_and_view_button=None, action=None 8 8 ##title= 9 9 # $Id$ … … 42 42 base_url = app.absolute_url() 43 43 44 if app_doc.passport is not None: 45 args['proceed'] = 'Continue' 46 47 if cpsdocument_edit_button: 48 if is_valid: 44 if is_valid: 45 if cpsdocument_edit_button: 49 46 if app_doc.passport is not None: 50 47 args['portal_status_message'] = 'You successfully uploaded your passport picture.' 51 48 else: 52 49 args['portal_status_message'] = "You didn't upload a passport picture." 53 elif proceed:54 if is_valid:55 action = "/start_clearance"56 base_url = student.absolute_url()57 url = base_url + action58 return REQUEST.RESPONSE.redirect(url)59 else:60 args['portal_status_message'] = 'psm_content_error'50 elif cpsdocument_edit_and_view_button: 51 if app_doc.passport is not None: 52 action = "/start_clearance" 53 base_url = student.absolute_url() 54 url = base_url + action 55 return REQUEST.RESPONSE.redirect(url) 56 else: 57 args['portal_status_message'] = "You didn't upload a passport picture." 61 58 if args: 62 59 url = base_url + action + '?' + urlencode(args)
Note: See TracChangeset for help on using the changeset viewer.