Ignore:
Timestamp:
24 Jan 2019, 14:34:09 (6 years ago)
Author:
Henrik Bettermann
Message:

Customize PaymentsManageFormPage?.

File:
1 edited

Legend:

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

    r14591 r15304  
    1919from zope.i18n import translate
    2020from zope.component import getUtility
     21from zope.security import checkPermission
    2122from hurry.workflow.interfaces import IWorkflowInfo
    2223from waeup.kofa.interfaces import ADMITTED, IKofaUtils
     
    2526from waeup.kofa.students.browser import (
    2627    StartClearancePage, BedTicketAddPage,
    27     ExportPDFAdmissionSlip, StudyLevelDisplayFormPage)
     28    ExportPDFAdmissionSlip, StudyLevelDisplayFormPage,
     29    PaymentsManageFormPage)
    2830from kofacustom.nigeria.students.browser import (
    2931    NigeriaOnlinePaymentDisplayFormPage,
     
    159161    grok.context(ICustomStudentStudyLevel)
    160162    form_fields = grok.AutoFields(ICustomStudentStudyLevel).omit('level')
     163
     164class CustomPaymentsManageFormPage(PaymentsManageFormPage):
     165    """ Page to manage the student payments. This manage form page is for
     166    both students and students officers. FCEOkene does not allow students
     167    to remove any payment ticket.
     168    """
     169    @property
     170    def manage_payments_allowed(self):
     171        return checkPermission('waeup.manageStudent', self.context)
Note: See TracChangeset for help on using the changeset viewer.