Ignore:
Timestamp:
18 Dec 2019, 15:34:16 (5 years ago)
Author:
Henrik Bettermann
Message:

Skip ticket if line has been removed.

File:
1 edited

Legend:

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

    r15876 r15896  
    3535from waeup.kofa.students.interfaces import (
    3636    IStudentsUtils, IStudent, IStudentRequestPW, IStudentStudyLevel)
    37 from waeup.kofa.students.workflow import PAID, REGISTERED, RETURNING
     37from waeup.kofa.students.workflow import PAID, REGISTERED, RETURNING, GRADUATED
    3838from waeup.kofa.students.browser import (
    3939    StartClearancePage,
     
    739739    """Deliver a PDF slip of the context.
    740740    """
    741 #    grok.require('waeup.viewStudent')
    742741
    743742    note = _("""
     
    752751
    753752    def _signatures(self):
    754         return ([(
    755             'O.O OHIKHENA (Manupa)<br />Principal Asst. Registrar<br /> '
    756             'Exams, Records and Data Processing Division <br /> For: Registrar')],)
     753        if self.context.student.state == GRADUATED:
     754            return ([(
     755                'O.O OHIKHENA (Manupa)<br />'
     756                'Principal Asst. Registrar<br /> '
     757                'Exams, Records and Data Processing Division <br /> '
     758                'For: Registrar')],)
     759        return
     760
    757761
    758762    def render(self):
     
    10351039            imported_ts = ticket.imported_ts
    10361040            sid = ticket.student.student_id
     1041            if sid not in formvals:
     1042                continue
    10371043            if formvals[sid][0] == '':
    10381044                score = None
Note: See TracChangeset for help on using the changeset viewer.