Changeset 1032 for WAeUP_SRP/trunk/skins
- Timestamp:
- 12 Dec 2006, 10:00:51 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py
r1027 r1032 49 49 args = {} 50 50 action = "/external_clearance_edit_form" 51 if context.isStudent(): 52 action = "/clearance_edit_form" 53 51 54 if is_valid: 52 55 if cpsdocument_edit_button: 53 56 psm = "Content changed!" 54 if context.isStudent():55 action = "/clearance_edit_form"56 57 if clear_doc.clr_ac_pin == "": 57 58 res = context.portal_pins(student=member_id) … … 75 76 logger.info('"%s","repeatedly requested clearance"' % (student_id)) 76 77 psm = "You have already requested clearance!" 77 if context.isStudent():78 action = "/clearance_edit_form"79 78 else: 80 79 psm = "You must tick the acknowledgement check box before submission!" 81 if context.isStudent():82 action = "/clearance_edit_form"83 80 elif clear_and_validate_button and info['review_state'] == "clearance_requested": 84 81 logger.info('"%s","cleared","%s"' % (member_id,student_id )) -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r1025 r1032 144 144 row['s_edit_link'] = "%s/%s" % (soo.absolute_url(),se_link) 145 145 row['review_state'] = so.review_state 146 row['display'] = so.review_state in ('opened','closed',) 146 row['display'] = so.review_state in ('opened','closed',) or so.portal_type == 'StudentStudyCourse' 147 147 items.append(row) 148 148 info['items'] = items -
WAeUP_SRP/trunk/skins/waeup_student/start_clearance.py
r1030 r1032 42 42 error = False 43 43 if session.get("clicked",None): 44 psm = 'Please wait a moment , until "Clearance started" turns green, then click on the green link'44 psm = 'Please wait a moment until "Clearance started" turns green, then click on the green link!' 45 45 error = True 46 logger.info('"%s","repeatedly pressed the clearance button"' % (info['id'])) 46 47 elif app_doc.passport is None: 47 48 psm = "You must upload your passport picture before you can start the registration process!" 48 49 error = True 50 logger.info('"%s", "tried to start clerance without passport picture"' % (info['id'])) 49 51 elif review_state == "clearance_pin_entered": 50 psm = "You have already entered a clearance pin "52 psm = "You have already entered a clearance pin!" 51 53 error = True 54 logger.info('"%s", "tried to start clearance though already started"' % (info['id'])) 52 55 elif psm == 'invalid': 53 56 psm = "Please correct your input!" 54 57 error = True 58 logger.info('"%s","entered wrong clearance pin"' % (info['id'])) 55 59 if error: 56 60 return context.clearance_pin_form(rendered = res, … … 62 66 session.set("clicked","clicked") 63 67 pin = str(ds.get('clr_ac_pin')) 64 logger.info('"%s", " entered clearancepin", "%s"' % (info['id'],pin))68 logger.info('"%s", "started clearance with pin", "%s"' % (info['id'],pin)) 65 69 wf.doActionFor(info['student'],'enter_clearance_pin') 66 70 wf.doActionFor(info['clear'],'open')
Note: See TracChangeset for help on using the changeset viewer.