Ignore:
Timestamp:
4 Nov 2012, 20:12:59 (12 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes made in base package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r9154 r9527  
    6363        p_level = student['studycourse'].current_level
    6464        p_current = True
    65         session = str(p_session)
    66         try:
    67             academic_session = grok.getSite()['configuration'][session]
    68         except KeyError:
     65        academic_session = self._getSessionConfiguration(p_session)
     66        if academic_session == None:
    6967            return _(u'Session configuration object is not available.'), None
    7068        # Determine fee.
     
    9492            elif student.state == RETURNING or\
    9593                (student.is_postgrad and student.state == PAID):
     94                academic_session = self._getSessionConfiguration(p_session)
     95                if academic_session == None:
     96                    return _(u'Session configuration object is not available.'), None
    9697                if student.state == RETURNING:
    9798                    p_session, p_level = self.getReturningData(student)
Note: See TracChangeset for help on using the changeset viewer.