Changeset 9519 for main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
- Timestamp:
- 4 Nov 2012, 06:13:36 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r9517 r9519 300 300 return 301 301 302 def _getSessionConfiguration(self, session): 303 try: 304 return grok.getSite()['configuration'][str(session)] 305 except KeyError: 306 return None 307 302 308 def setPaymentDetails(self, category, student, 303 309 previous_session, previous_level): … … 326 332 p_level = student['studycourse'].current_level 327 333 p_current = True 328 session = str(p_session) 329 try: 330 academic_session = grok.getSite()['configuration'][session] 331 except KeyError: 334 academic_session = self._getSessionConfiguration(p_session) 335 if academic_session == None: 332 336 return _(u'Session configuration object is not available.'), None 333 337 if category == 'schoolfee': … … 353 357 # has paid for. Payment session is always next session. 354 358 p_session, p_level = self.getReturningData(student) 359 academic_session = self._getSessionConfiguration(p_session) 360 if academic_session == None: 361 return _(u'Session configuration object is not available.'), None 355 362 amount = getattr(certificate, 'school_fee_2', 0.0) 356 363 elif student.is_postgrad and student.state == PAID: … … 358 365 # but their level always remains the same. 359 366 p_session += 1 367 academic_session = self._getSessionConfiguration(p_session) 368 if academic_session == None: 369 return _(u'Session configuration object is not available.'), None 360 370 amount = getattr(certificate, 'school_fee_2', 0.0) 361 371 elif category == 'clearance':
Note: See TracChangeset for help on using the changeset viewer.