Changeset 1460
- Timestamp:
- 21 Feb 2007, 17:39:39 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r1426 r1460 72 72 sid = "%c%d" % (letter,r.randint(99999,1000000)) 73 73 return sid 74 ###) 74 75 75 76 def generatePassword(self,s=None): ###( … … 92 93 return None 93 94 return getattr(student_entry,"password","not set") 95 ###) 96 97 security.declarePublic('checkPassword') ###( 98 def checkPassword(self,password): 99 "return a student password" 100 student_entry = getattr(self.portal_directories.students,student_id,None) 101 if student_entry is None: 102 return False 103 return getattr(student_entry,"password","not set") == password 94 104 ###) 95 105 … … 306 316 student_obj.invokeFactory('StudentPersonal','personal') 307 317 da['jamb_reg_no'] = student.Entryregno 308 em = student.Mode_of_Entry 309 if em in ('DIRECT', 'DIRECT ENTRY',): 310 em = 'DE' 311 elif em in ('U.M.E', 'UNE',): 312 em = 'UME' 313 elif not em: 314 em = "unknown" 318 em = context.getEntryMode(student.Entryregno) 319 ## em = student.Mode_of_Entry 320 ## if em in ('DIRECT', 'DIRECT ENTRY',): 321 ## em = 'DE' 322 ## elif em in ('U.M.E', 'UNE',): 323 ## em = 'UME' 324 ## elif not em: 325 ## em = "unknown" 315 326 da['entry_mode'] = em 316 327 personal = student_obj.personal -
WAeUP_SRP/trunk/skins/waeup_accommodation/release_bed.py
r1452 r1460 29 29 #stud_cat = context.students_catalog 30 30 student_id = context.getStudentId() 31 31 try: 32 from Products.zdb import set_trace 33 except: 34 def set_trace(): 35 return 36 #set_trace() 32 37 if student_id is not None: 33 38 logger.info('"%s", "requests bed_release for", "%s"' % (member_id,student_id)) -
WAeUP_SRP/trunk/skins/waeup_student/getLevelFromResultsCosCode.py
r1401 r1460 11 11 lnr = 0 12 12 for e in list: 13 if e.CosCode == "na": 14 return 2 13 15 try: 14 16 cc = int(e.CosCode[3])
Note: See TracChangeset for help on using the changeset viewer.