Ignore:
Timestamp:
13 Sep 2016, 13:30:05 (8 years ago)
Author:
Henrik Bettermann
Message:

Put application_slip_notice onto invitation letter.

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

Legend:

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

    r14167 r14168  
    624624    @property
    625625    def note(self):
     626        notice = getattr(self.context.__parent__, 'application_slip_notice', None)
    626627        if self.context.screening_date:
    627628            return """
     
    642643<br /><br />
    643644The Registrar<br />
     645<br /><br />
     646<br /><br />
     647%s
    644648</font>
    645649
    646650""" % (self.context.display_fullname, self.context.screening_date,
    647        self.context.screening_venue)
     651       self.context.screening_venue, notice)
    648652        return
    649653
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py

    r14167 r14168  
    192192        self.applicant.screening_date = u'any date'
    193193        self.applicant.screening_venue = u'MAIN AUDITORIUM'
     194        self.applicantscontainer.application_slip_notice = u'This is an additional notice.'
    194195        # The invitation letter can be printed
    195196        self.browser.open(self.view_path)
Note: See TracChangeset for help on using the changeset viewer.