Changeset 4800 for WAeUP_SRP/trunk


Ignore:
Timestamp:
12 Jan 2010, 20:50:56 (15 years ago)
Author:
Henrik Bettermann
Message:

minor fix in exportAllStudyLevels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r4558 r4800  
    12041204        student_obj = getattr(self.portal_url.getPortalObject().campus.students,student_id)
    12051205        studycourse = getattr(student_obj,"study_course",None)
    1206         levels = studycourse.objectIds()
    1207        
     1206        if studycourse:
     1207            levels = studycourse.objectIds()
     1208        else:
     1209            levels = []
    12081210        stool = getToolByName(self, 'portal_schemas')
    12091211        schema = stool._getOb('student_study_level')
Note: See TracChangeset for help on using the changeset viewer.