Ignore:
Timestamp:
18 Jan 2016, 17:22:05 (9 years ago)
Author:
Henrik Bettermann
Message:

Rename bursary.

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

Legend:

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

    r13633 r13634  
    260260
    261261class ClearStudentFinancially(UtilityView, grok.View):
    262     """ Clear student financially by bursary officer
     262    """ Clear student financially by financial clearance officer
    263263    """
    264264    grok.context(INigeriaStudent)
     
    292292
    293293class WithdrawFinancialClearance(UtilityView, grok.View):
    294     """ Withdraw financial clearance by bursary officer
     294    """ Withdraw financial clearance by financial clearance officer
    295295    """
    296296    grok.context(INigeriaStudent)
     
    328328"""
    329329
    330 class NigeriaExportPDFBursaryClearancePage(UtilityView, grok.View):
    331     """Deliver a PDF bursary clearance slip.
     330class NigeriaExportPDFFinancialClearancePage(UtilityView, grok.View):
     331    """Deliver a PDF financial clearance slip.
    332332    """
    333333    grok.context(INigeriaStudent)
    334     grok.name('bursary_clearance_slip.pdf')
     334    grok.name('financial_clearance_slip.pdf')
    335335    grok.require('waeup.viewStudent')
    336336    prefix = 'form'
     
    346346    def label(self):
    347347        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    348         return translate(_('Bursary Clearance Slip of'),
     348        return translate(_('Financial Clearance Slip of'),
    349349            'waeup.kofa', target_language=portal_language) \
    350350            + ' %s' % self.context.display_fullname
     
    357357            return ()
    358358        return (_('Date, Student Signature'),
    359                 _('Date, Bursary Officer Signature'),
     359                _('Date, Financial Clearance Officer Signature'),
    360360                )
    361361
     
    399399        tabledata.append(sorted(
    400400            [value for value in self.context['payments'].values()
    401              if value.p_state == 'paid'], key=lambda value: value.p_id))
    402         tableheader.append([(P_ID,'p_id', 3),
     401             if value.p_state == 'paid'], key=lambda value: value.p_session))
     402        tableheader.append([(P_ID,'p_id', 4.2),
    403403                         #(CD,'creation_date', 3),
    404404                         (PD,'formatted_p_date', 3),
     
    409409                         ])
    410410        return students_utils.renderPDF(
    411             self, 'bursary_clearance_slip.pdf',
     411            self, 'financial_clearance_slip.pdf',
    412412            self.context.student, studentview,
    413413            tableheader=tableheader,
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/permissions.py

    r13620 r13634  
    2525    """The ClearStudentFinancially permission is needed to clear students
    2626    financially or to reject financial clearance. This permission is
    27     meant for bursary officers.
     27    meant for financial clearance officers.
    2828    """
    2929    grok.name('waeup.clearStudentFinancially')
     
    3131
    3232class BursaryOfficer(grok.Role):
    33     """Bursary Officers can export bursary data. They can't access the
     33    """Financial Clearance Officers (aka Bursary Officers)
     34    can export bursary data. They can't access the
    3435    Data Center but see student data export buttons in the Academic Section.
    3536
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py

    r13623 r13634  
    423423        payment1 = createObject(u'waeup.StudentOnlinePayment')
    424424        timestamp = ("%d" % int(time()*10000))[1:]
    425         payment1.p_id = "p%s" % timestamp
     425        payment1.p_id = "LSCNEW-2-4153206270" # the longest possible p_id
    426426        payment1.p_category = 'schoolfee'
    427427        payment1.p_item = u'My School Fee'
     
    445445        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    446446        self.browser.open(self.student_path + '/clear_financially')
    447         self.browser.getLink("Download bursary clearance slip").click()
     447        self.browser.getLink("Download financial clearance slip").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(), 'bursary_clearance_slip.pdf')
     451        path = os.path.join(samples_dir(), 'financial_clearance_slip.pdf')
    452452        open(path, 'wb').write(self.browser.contents)
    453         print "Sample PDF bursary_clearance_slip.pdf written to %s" % path
     453        print "Sample PDF financial_clearance_slip.pdf written to %s" % path
    454454        return
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/viewlets.py

    r13623 r13634  
    7070        return self.view.url(self.view.context, self.target)
    7171
    72 class BursaryClearanceSlipActionButton(ManageActionButton):
     72class FinancialClearanceSlipActionButton(ManageActionButton):
    7373    grok.order(12)
    7474    grok.context(INigeriaStudent)
    7575    grok.view(NigeriaStudentBaseDisplayFormPage)
    7676    grok.require('waeup.viewStudent')
    77     text = _('Download bursary clearance slip')
    78     target = 'bursary_clearance_slip.pdf'
     77    text = _('Download financial clearance slip')
     78    target = 'financial_clearance_slip.pdf'
    7979    icon = 'actionicon_pdf.png'
    8080
Note: See TracChangeset for help on using the changeset viewer.