Ignore:
Timestamp:
19 Jul 2020, 20:56:10 (4 years ago)
Author:
Henrik Bettermann
Message:

Show signature boxes only in states 'transcript validated' and 'transcript released'.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
2 edited

Legend:

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

    r16088 r16171  
    3939from waeup.kofa.students.workflow import (CREATED, ADMITTED, PAID,
    4040    CLEARANCE, REQUESTED, RETURNING, CLEARED, REGISTERED, VALIDATED,
    41     GRADUATED, FORBIDDEN_POSTGRAD_TRANS)
     41    GRADUATED, TRANSREQ, TRANSVAL, TRANSREL, FORBIDDEN_POSTGRAD_TRANS)
    4242from waeup.kofa.students.interfaces import IStudentsUtils, ICourseTicket
    4343from waeup.kofa.students.workflow import FORBIDDEN_POSTGRAD_TRANS
     
    659659    """
    660660
    661     #def _sigsInFooter(self):
    662     #    isStudent = getattr(
    663     #        self.request.principal, 'user_type', None) == 'student'
    664     #    if not isStudent:
    665     #        return (_('D. R. (Exams & Records)'),_('Current Dean of Faculty'),)
    666     #    return ()
     661    def _sigsInFooter(self):
     662        isStudent = getattr(
     663            self.request.principal, 'user_type', None) == 'student'
     664        if not isStudent and self.context.student.state in (TRANSVAL, TRANSREL):
     665            return (_('D. R. (Exams & Records)'),_('Current Dean of Faculty'),)
     666        return ()
    667667
    668668    #def _signatures(self):
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r15828 r16171  
    992992    def test_transcripts(self):
    993993        studylevel = createObject(u'waeup.StudentStudyLevel')
     994        IWorkflowState(self.student).setState('transcript validated')
    994995        studylevel.level = 100
    995996        studylevel.level_session = 2005
Note: See TracChangeset for help on using the changeset viewer.