Changeset 1460


Ignore:
Timestamp:
21 Feb 2007, 17:39:39 (18 years ago)
Author:
joachim
Message:

M skins/waeup_student/getLevelFromResultsCosCode.py
return 2 for course_code "na"
M skins/waeup_accommodation/release_bed.py
M WAeUPTool.py
use getEntryMode in makeData

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1426 r1460  
    7272            sid = "%c%d" % (letter,r.randint(99999,1000000))
    7373        return sid
     74    ###)
    7475
    7576    def generatePassword(self,s=None): ###(
     
    9293            return None
    9394        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
    94104    ###)
    95105
     
    306316        student_obj.invokeFactory('StudentPersonal','personal')
    307317        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"
    315326        da['entry_mode'] = em
    316327        personal = student_obj.personal
  • WAeUP_SRP/trunk/skins/waeup_accommodation/release_bed.py

    r1452 r1460  
    2929#stud_cat = context.students_catalog
    3030student_id = context.getStudentId()
    31 
     31try:
     32    from Products.zdb import set_trace
     33except:
     34    def set_trace():
     35        return
     36#set_trace()
    3237if student_id is not None:
    3338    logger.info('"%s", "requests bed_release for", "%s"' % (member_id,student_id))
  • WAeUP_SRP/trunk/skins/waeup_student/getLevelFromResultsCosCode.py

    r1401 r1460  
    1111lnr = 0
    1212for e in list:
     13    if e.CosCode == "na":
     14        return 2
    1315    try:
    1416        cc = int(e.CosCode[3])
Note: See TracChangeset for help on using the changeset viewer.