Ignore:
Timestamp:
29 Nov 2006, 14:26:31 (18 years ago)
Author:
joachim
Message:

created new catalog pumeresults for pumeresult checking
modified pume_anon_view and pume_anon_slip to use it.

File:
1 edited

Legend:

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

    r913 r966  
    4848info['app'] = student.application
    4949info['app_doc'] = student.application.getContent()
    50 info['per'] = student.personal
    51 info['per_doc'] = student.personal.getContent()
     50info['per'] = getattr(student,'personal',None)
     51info['sex'] = 'male'
     52if info['per'] is not None:
     53    info['per_doc'] = student.personal.getContent()
     54    if info['per_doc'].sex:
     55        info['sex'] = 'female'
     56else:
     57    if info['app_doc'].jamb_sex == "F":
     58        info['sex'] = 'female'
    5259course = getattr(student,'study_course',None)
    53 #
    5460info['course'] = course
    5561if course:
    5662    info['course_doc'] = student.study_course.getContent()
    57 info['sex'] = 'male'
    58 if info['per_doc'].sex:
    59     info['sex'] = 'female'
    6063#
    6164acco = getattr(student,'accommodation_2006',None)
Note: See TracChangeset for help on using the changeset viewer.