Ignore:
Timestamp:
18 Mar 2016, 06:17:39 (9 years ago)
Author:
Henrik Bettermann
Message:

Rename financial clearance slip.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/browser.py

    r13760 r13781  
    330330    """
    331331    grok.context(INigeriaStudent)
    332     grok.name('financial_clearance_slip.pdf')
     332    grok.name('fee_payment_history.pdf')
    333333    grok.require('waeup.viewStudent')
    334334    prefix = 'form'
     
    345345    def label(self):
    346346        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    347         return translate(_('Financial Clearance Slip of'),
     347        return translate(_('Fee Payment History of'),
    348348            'waeup.kofa', target_language=portal_language) \
    349349            + ' %s' % self.context.display_fullname
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py

    r13634 r13781  
    445445        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    446446        self.browser.open(self.student_path + '/clear_financially')
    447         self.browser.getLink("Download financial clearance slip").click()
     447        self.browser.getLink("Download fee payment history").click()
    448448        self.assertEqual(self.browser.headers['Status'], '200 Ok')
    449449        self.assertEqual(self.browser.headers['Content-Type'],
    450450                         'application/pdf')
    451         path = os.path.join(samples_dir(), 'financial_clearance_slip.pdf')
     451        path = os.path.join(samples_dir(), 'fee_payment_history.pdf')
    452452        open(path, 'wb').write(self.browser.contents)
    453         print "Sample PDF financial_clearance_slip.pdf written to %s" % path
     453        print "Sample PDF fee_payment_history.pdf written to %s" % path
    454454        return
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/viewlets.py

    r13634 r13781  
    7575    grok.view(NigeriaStudentBaseDisplayFormPage)
    7676    grok.require('waeup.viewStudent')
    77     text = _('Download financial clearance slip')
    78     target = 'financial_clearance_slip.pdf'
     77    text = _('Download fee payment history')
     78    target = 'fee_payment_history.pdf'
    7979    icon = 'actionicon_pdf.png'
    8080
Note: See TracChangeset for help on using the changeset viewer.