Changeset 5160 for WAeUP_SRP/trunk


Ignore:
Timestamp:
20 Apr 2010, 11:23:17 (15 years ago)
Author:
Henrik Bettermann
Message:

change certificate in certificates_catalog instead of portal_catalog (see ticket #665)

New admitted student were not able to access the portal_catalog (don't know why).

File:
1 edited

Legend:

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

    r2920 r5160  
    6868
    6969course = getattr(student,'study_course',None)
     70
    7071if course:
    7172    cert_id = course.getContent().study_course
    72     res = context.portal_catalog(portal_type = "Certificate", id = cert_id)
     73    res = context.certificates_catalog(code=cert_id)
    7374    ci = {}
    7475    if len(res) > 0:
    7576        info['course'] = course
    7677        brain = res[0]
    77         ci['study_course'] = brain.getId
    78         ci['title'] = brain.Title
    79         pl = brain.getPath().split('/')
    80         ci['faculty'] = pl[-4]
    81         ci['department'] = pl[-3]
     78        ci['study_course'] = brain.code
     79        ci['title'] = brain.title
     80        ci['faculty'] = brain.faculty
     81        ci['department'] = brain.department
    8282        info['course_doc'] = ci
    8383    else:
Note: See TracChangeset for help on using the changeset viewer.