Changeset 1315 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
17 Jan 2007, 17:38:41 (18 years ago)
Author:
joachim
Message:

M skins/waeup_student/getFormattedStudentEntry.py
do the sex right.
M skins/waeup_student/getSessionResults.py
remove wrong getattr(student,'clearance')
M profiles/default/schemas/student_study_course.xml
removed redundant fields

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getFormattedStudentEntry.py

    r1314 r1315  
    1818    d[f] = getattr(brain,f,'--')
    1919    if f == "sex":
    20         d[f] = 'M'
    2120        if d[f]:
    22             d[f] = 'F'
     21            d[f] = 'F'
     22        else:
     23            d[f] = 'M'
    2324    elif f == "name":
    2425        d[f] = d[f].strip()
  • WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py

    r1258 r1315  
    4141
    4242students_object = context.portal_url.getPortalObject().campus.students
    43 student = getattr(students_object, student_id)
    44 
    45 
    46 clear = getattr(student,'clearance',None)
    47 if clear:
    48     value = clear.getContent().matric_no
    49 else:
    50     return None
     43##student = getattr(students_object, student_id)
     44##clear = getattr(student,'clearance',None)
     45##if clear:
     46##    value = clear.getContent().matric_no
     47##else:
     48##    return None
    5149
    5250res = returning(matric_no = value)
Note: See TracChangeset for help on using the changeset viewer.