Changeset 7957
- Timestamp:
- 22 Mar 2012, 11:19:10 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/cps_custom/logged_in.py
r5784 r7957 19 19 pass 20 20 import DateTime 21 import os 21 import os 22 22 current = DateTime.DateTime() 23 23 import logging … … 58 58 student_app = getattr(student,'application',None) 59 59 student_per = getattr(student,'personal',None) 60 60 61 61 62 62 ######################################################### … … 104 104 else: 105 105 app_doc = student_app.getContent() 106 106 107 107 res = context.students_catalog(id = member_id) 108 108 matric_no = res[0].matric_no … … 112 112 level = res[0].level 113 113 has_level = level 114 has_verdict = verdict and not verdict == 'N/A' 114 has_verdict = verdict and not verdict == 'N/A' 115 115 116 116 ######################################################### … … 145 145 146 146 ######################################################### 147 147 148 148 # look for passport pictures of transfer students 149 149 … … 159 159 logger.info('%s (%s on transfer), %s' % (member,s_review_state,msg)) 160 160 161 ######################################################### 161 ######################################################### 162 162 163 163 # look for passport pictures of new students … … 231 231 pin = "%s-%s-%s" % (p[:4],p[4:5],p[5:]) 232 232 else: 233 pin = "%s-%s-%s" % (p[:3],p[3:-10],p[-10:]) 233 pin = "%s-%s-%s" % (p[:3],p[3:-10],p[-10:]) 234 234 else: 235 235 pin = p … … 244 244 wftool.doActionFor(student_per,'open') 245 245 246 # 4. open clearance object and close application object in state clearance_pin_entered 247 248 elif s_review_state == "clearance_pin_entered": 249 student_clr = getattr(student,'clearance',None) 250 clr_review_state = wftool.getInfoFor(student_clr,'review_state',None) 251 if a_review_state != 'closed': 252 wftool.doActionFor(student_app,'close') 253 if clr_review_state != 'opened': 254 wftool.doActionFor(student_clr,'open') 246 255 247 256 ######################################################### … … 315 324 316 325 response.redirect(redirect_url) 317
Note: See TracChangeset for help on using the changeset viewer.