Changeset 15919


Ignore:
Timestamp:
13 Jan 2020, 17:20:37 (5 years ago)
Author:
Henrik Bettermann
Message:

Add officer_1 signature if student is not graduated.

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

Legend:

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

    r15913 r15919  
    757757                'Exams, Records and Data Processing Division <br /> '
    758758                'For: Registrar')],)
     759        elif self.context.certificate is not None:
     760            dep = self.context.certificate.__parent__.__parent__
     761            return ([(dep.officer_1)],)
    759762        return
    760 
    761763
    762764    def render(self):
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r15867 r15919  
    519519        self.assertEqual(td[0][1]['tickets_1'][0].code, 'ANYCODE')
    520520        self.assertEqual(td[1], 3.5652173913043477)
     521        # Set Officer 1
     522        self.app['faculties']['fac1']['dep1'].officer_1 = u'Transcript Boss'
    521523        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    522524        self.browser.open(self.student_path + '/studycourse/transcript')
Note: See TracChangeset for help on using the changeset viewer.