- Timestamp:
- 19 Mar 2007, 21:45:44 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/branches/joachim-event-branch/skins/waeup_student/clearance_edit.py
r1217 r1596 16 16 current = DateTime.DateTime() 17 17 import logging 18 logger = logging.getLogger('S tudent.Clearance.Edit')18 logger = logging.getLogger('Skins.clearance_edit') 19 19 request = REQUEST 20 20 … … 70 70 if cpsdocument_edit_button or result_edit_button: 71 71 psm = "Content changed!" 72 logger.info(' "%s","edited clearance of","%s"' % (member_id,student_id ))72 logger.info('%s edited clearance of %s' % (member_id,student_id )) 73 73 if clear_doc.clr_ac_pin == "": 74 74 res = context.portal_pins(student=member_id) … … 92 92 missing = True 93 93 if missing: 94 logger.info(' "%s","requested clearance with documents missing"' % (student_id))94 logger.info('%s requested clearance with documents missing' % (student_id)) 95 95 psm = "You have not uploaded all necessary documents to request clearance!" 96 96 else: 97 logger.info(' "%s","requested clearance"' % (student_id))97 logger.info('%s requested clearance' % (student_id)) 98 98 info['clear_doc'].edit(mapping = {'request_date': current,}) 99 99 wftool.doActionFor(info['clear'],'close') … … 103 103 action = "/clearance_view" 104 104 elif acknowledge and info['review_state'] != "clearance_pin_entered": 105 logger.info(' "%s","repeatedly requested clearance"' % (student_id))105 logger.info('%s repeatedly requested clearance' % (student_id)) 106 106 psm = "You have already requested clearance!" 107 107 else: 108 108 psm = "You must tick the acknowledgement check box before submission!" 109 109 elif clear_and_validate_button and info['review_state'] == "clearance_requested": 110 logger.info(' "%s","cleared","%s"' % (member_id,student_id ))110 logger.info('%s cleared %s' % (member_id,student_id )) 111 111 #from Products.zdb import set_trace 112 112 #set_trace() … … 117 117 psm = "This student is already cleared!" 118 118 elif reject_clearance_button: 119 logger.info(' "%s","rejected clearance for","%s"' % (member_id,student_id ))119 logger.info('%s rejected clearance for %s' % (member_id,student_id )) 120 120 wftool.doActionFor(info['clear'],'open') 121 121 wftool.doActionFor(info['student'],'reject_clearance') 122 122 action = "/contact_student_form" 123 123 psm = "Student's clearance request has been rejected! Please fill and submit the form below!" 124 subject = "Clearance request rejected" 125 args['subject'] = subject 126 args['continue'] = 'external_clearance_edit_form' 124 127 else: 125 128 psm = "Please correct your errors!" … … 128 131 args['portal_status_message'] = psm 129 132 url = clear.absolute_url() + action + '?' + urlencode(args) 130 REQUEST.RESPONSE.redirect(url)133 return REQUEST.RESPONSE.redirect(url) 131 134
Note: See TracChangeset for help on using the changeset viewer.