Changeset 870 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 15 Nov 2006, 17:30:45 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 2 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form_manager.pt
r865 r870 66 66 value="Reject Clearance" 67 67 id="reject_clearance_button" 68 tal:condition="python:review_state == 'clearance_requested'" />69 <input type="submit" class="standalone"70 name="undo_clear_button"71 value="Undo Validate & Clear"72 id="undo_clear_button"73 68 tal:condition="python:review_state == 'cleared_and_validated'" /> 74 69 </form> -
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_manager.py
r858 r870 19 19 cpsdocument_edit_and_view_button = REQUEST.has_key('cpsdocument_edit_and_view_button') 20 20 clear_and_validate_button = REQUEST.has_key('clear_and_validate_button') 21 undo_clear_button = REQUEST.has_key('undo_clear_button')22 21 reject_clearance_button = REQUEST.has_key('reject_clearance_button') 23 24 22 # Until ajax posts directly to its own script... 25 23 ##if 'ajax_edit' in REQUEST.form: … … 52 50 elif cpsdocument_edit_and_view_button: 53 51 wftool.doActionFor(info['clear'],'close') 54 wftool.doActionFor(info['student'],'request_clearance' )52 wftool.doActionFor(info['student'],'request_clearance',dest_container=1) 55 53 elif clear_and_validate_button: 56 54 wftool.doActionFor(info['student'],'clear_and_validate') 57 55 elif reject_clearance_button: 58 56 wftool.doActionFor(info['clear'],'open') 59 wftool.doActionFor(info['student'],'enter_clearance_pin') 60 elif undo_clear_button: 61 wftool.doActionFor(info['student'],'request_clearance') 57 wftool.doActionFor(info['student'],'reject_clearance') 62 58 else: 63 59 psm = "Please correct your errors." -
WAeUP_SRP/trunk/skins/waeup_student/isClearanceOfficer.py
r867 r870 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters= REQUEST7 ##parameters= 8 8 ##title= 9 9 ## … … 12 12 13 13 """ 14 request = REQUEST15 14 wftool = context.portal_workflow 16 15 mtool = context.portal_membership … … 23 22 return False 24 23 25 26 24 res = context.portal_catalog(portal_type="Department",id=info['course_doc'].department) 27 if len res!= 1:25 if len(res) != 1: 28 26 return False 29 27
Note: See TracChangeset for help on using the changeset viewer.