Changeset 16041 for main/waeup.aaue


Ignore:
Timestamp:
16 Mar 2020, 09:15:27 (5 years ago)
Author:
Henrik Bettermann
Message:

No outstanding courses on course registration slip.

File:
1 edited

Legend:

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

    r15987 r16041  
    676676
    677677    def render(self):
     678        if not self.context.student.current_mode:
     679            self.flash('No certificate assigned.', type="danger")
     680            self.redirect(self.url(self.context))
     681            return
    678682        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    679683        Sem = translate(_('Sem.'), target_language=portal_language)
     
    697701        for i in range(1,7):
    698702            tabledata.append(sorted(
    699                 [value for value in self.context.values() if value.semester == i],
    700                 key=lambda value: str(value.semester) + value.code))
     703                [value for value in self.context.values()
     704                 if value.semester == i and not value.outstanding],
     705                 key=lambda value: str(value.semester) + value.code))
    701706            if self.show_results:
    702707                tableheader.append([(Code,'code', 2.0),
Note: See TracChangeset for help on using the changeset viewer.