Changeset 16499


Ignore:
Timestamp:
3 Jun 2021, 15:23:15 (3 years ago)
Author:
Henrik Bettermann
Message:

Customize PaymentsManageFormPage?.

File:
1 edited

Legend:

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

    r16492 r16499  
    2121from zope.schema.interfaces import ConstraintNotSatisfied
    2222from zope.component import getUtility
     23from zope.security import checkPermission
    2324from zope.formlib.textwidgets import BytesDisplayWidget
    2425from hurry.workflow.interfaces import IWorkflowInfo
     
    3435    StartClearancePage, BalancePaymentAddFormPage,
    3536    ExportPDFAdmissionSlip, ExportPDFPersonalDataSlip,
     37    PaymentsManageFormPage,
    3638    msave, emit_lock_message)
    3739from waeup.kofa.students.interfaces import (
     
    250252    with_ac = False
    251253    with_bedselection = True
     254
     255class CustomPaymentsManageFormPage(PaymentsManageFormPage):
     256    """ Page to manage the student payments. This manage form page is for
     257    both students and students officers. IUOkada does not allow students
     258    to remove any payment ticket.
     259    """
     260    @property
     261    def manage_payments_allowed(self):
     262        return checkPermission('waeup.manageStudent', self.context)
    252263
    253264class StudentGetMatricNumberPage(UtilityView, grok.View):
Note: See TracChangeset for help on using the changeset viewer.