Changeset 539 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 20 Sep 2006, 10:38:05 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/student_edit.py
r537 r539 20 20 form in the session. 21 21 """ 22 22 wftool = context.portal_workflow 23 23 from urllib import urlencode 24 24 from Products.CPSDocument.utils import getFormUidUrlArg … … 50 50 use_session=True) 51 51 52 action = "/ student_edit"53 if is_valid :52 action = "/passport_entry_view" 53 if is_valid and app_doc.passport is not None: 54 54 psm = 'You successfully uploaded your passport image.' 55 args = {'apply_button': 'Save and Apply',} 56 else: 57 psm = "You didn't upload a passport image." 55 58 args = {} 56 else:57 psm = 'psm_content_error'58 args = getFormUidUrlArg(REQUEST)59 59 elif 'apply_admission' not in REQUEST.form: 60 60 is_valid, ds = app_doc.validate(request=REQUEST, … … 73 73 else: 74 74 args = getFormUidUrlArg(REQUEST) 75 #psm = 'psm_content_error' 76 psm = '%s' % ds 75 psm = 'psm_content_error' 77 76 else: 78 77 args = {} 78 wftool.doActionFor(app,'close',dest_container= app) 79 79 psm = 'You applied for admission.' 80 80 action = "/application_view" … … 96 96 args = {} 97 97 else: 98 info['app'].content_status_modify(workflow_action="close")99 98 psm = 'psm_content_error' 100 99 args = getFormUidUrlArg(REQUEST)
Note: See TracChangeset for help on using the changeset viewer.