- Timestamp:
- 18 Mar 2016, 06:17:39 (9 years ago)
- 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 330 330 """ 331 331 grok.context(INigeriaStudent) 332 grok.name('f inancial_clearance_slip.pdf')332 grok.name('fee_payment_history.pdf') 333 333 grok.require('waeup.viewStudent') 334 334 prefix = 'form' … … 345 345 def label(self): 346 346 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 347 return translate(_('F inancial Clearance Slipof'),347 return translate(_('Fee Payment History of'), 348 348 'waeup.kofa', target_language=portal_language) \ 349 349 + ' %s' % self.context.display_fullname -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py
r13634 r13781 445 445 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 446 446 self.browser.open(self.student_path + '/clear_financially') 447 self.browser.getLink("Download f inancial clearance slip").click()447 self.browser.getLink("Download fee payment history").click() 448 448 self.assertEqual(self.browser.headers['Status'], '200 Ok') 449 449 self.assertEqual(self.browser.headers['Content-Type'], 450 450 'application/pdf') 451 path = os.path.join(samples_dir(), 'f inancial_clearance_slip.pdf')451 path = os.path.join(samples_dir(), 'fee_payment_history.pdf') 452 452 open(path, 'wb').write(self.browser.contents) 453 print "Sample PDF f inancial_clearance_slip.pdf written to %s" % path453 print "Sample PDF fee_payment_history.pdf written to %s" % path 454 454 return -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/viewlets.py
r13634 r13781 75 75 grok.view(NigeriaStudentBaseDisplayFormPage) 76 76 grok.require('waeup.viewStudent') 77 text = _('Download f inancial clearance slip')78 target = 'f inancial_clearance_slip.pdf'77 text = _('Download fee payment history') 78 target = 'fee_payment_history.pdf' 79 79 icon = 'actionicon_pdf.png' 80 80
Note: See TracChangeset for help on using the changeset viewer.