Changeset 1900
- Timestamp:
- 15 Jun 2007, 07:51:48 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r1898 r1900 1 #-*- mode: python; mode: fold -*-1 3#-*- mode: python; mode: fold -*- 2 2 # (C) Copyright 2005 The WAeUP group <http://www.waeup.org> 3 3 # Author: Joachim Schmitz (js@aixtraware.de) … … 261 261 students_folder.invokeFactory('Student', sid) 262 262 student_obj = getattr(students_folder,sid) 263 password = self.generatePassword()264 self.makeStudentMember(sid,password)265 263 f2t = self.student_field2types 266 264 #from pdb import set_trace; set_trace() … … 269 267 if dict.get('sex'): 270 268 d['jamb_sex'] = 'F' 269 271 270 entry_session = dict.get('entry_session') 272 wfaction = 'return' 273 wft = 'wf_transition_returning' 274 if entry_session == self.getSessionId(): 271 if entry_session == self.getSessionId()[-2:]: 275 272 wfaction = 'admit' 276 273 wft = 'wf_transition_admitted' 274 password = None 275 else: 276 wfaction = 'return' 277 wft = 'wf_transition_returning' 278 password = self.generatePassword() 279 self.makeStudentMember(sid,password) 280 277 281 for pt in f2t.keys(): 278 282 student_obj.invokeFactory(pt,f2t[pt]['id']) -
WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py
r1753 r1900 53 53 # return None 54 54 55 res = results(matric_no = matric_no) 56 results = res 55 if matric_no: 56 res = results(matric_no = matric_no) 57 results = res 58 else: 59 results = [] 57 60 58 61
Note: See TracChangeset for help on using the changeset viewer.