Changeset 1860
- Timestamp:
- 7 Jun 2007, 20:06:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py
r1853 r1860 1 z## Script (Python) "clearance_edit"1 ## Script (Python) "clearance_edit" 2 2 ##bind container=container 3 3 ##bind context=context … … 52 52 'ref_let', 53 53 'acc_let' 54 54 ) 55 55 form = request.form 56 56 psm = "" 57 57 args = {} 58 58 action = "/external_clearance_edit_form" 59 clearance_closed = False 60 59 61 if context.isStudent(): 60 62 action = "/clearance_edit_form" 63 if info['clear_review_state'] == 'closed': 64 clearance_closed = True 61 65 62 is_valid, ds = clear_doc.validate(request=REQUEST, 66 if not clearance_closed: 67 is_valid, ds = clear_doc.validate(request=REQUEST, 63 68 schema_id = 'student_clearance', 64 69 layout_id = 'student_clearance', 65 70 proxy=clear, 66 71 use_session=True) 67 68 72 if clear_and_validate_button and info['review_state'] == "clearance_requested": 69 73 logger.info('%s cleared %s' % (member_id,student_id )) … … 84 88 args['subject'] = subject 85 89 args['continue'] = 'external_clearance_edit_form' 90 elif clearance_closed: 91 action = "/clearance_view" 92 logger.info('%s tried to edit closed clearance of %s' % (member_id,student_id )) 86 93 elif is_valid: 87 94 if cpsdocument_edit_button or result_edit_button:
Note: See TracChangeset for help on using the changeset viewer.