Ignore:
Timestamp:
19 Feb 2016, 06:16:38 (9 years ago)
Author:
Henrik Bettermann
Message:

Customize PaymentsManageFormPage?.

File:
1 edited

Legend:

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

    r13717 r13719  
    1818import grok
    1919from zope.i18n import translate
     20from zope.security import checkPermission
    2021from zope.schema.interfaces import ConstraintNotSatisfied
    2122from zope.formlib.textwidgets import BytesDisplayWidget
     
    3233    msave, emit_lock_message,
    3334    StudentActivateView, StudentDeactivateView,
    34     ExportPDFTranscriptSlip)
     35    ExportPDFTranscriptSlip,
     36    PaymentsManageFormPage)
    3537from waeup.kofa.students.workflow import (CREATED, ADMITTED, PAID,
    3638    CLEARANCE, REQUESTED, RETURNING, CLEARED, REGISTERED, VALIDATED,
     
    525527            omit_fields=self.omit_fields,
    526528            note=note)
     529
     530class CustomPaymentsManageFormPage(PaymentsManageFormPage):
     531    """ Page to manage the student payments. This manage form page is for
     532    both students and students officers. Uniben does not allow students
     533    to remove any payment ticket.
     534    """
     535    @property
     536    def manage_payments_allowed(self):
     537        return checkPermission('waeup.manageStudent', self.context)
Note: See TracChangeset for help on using the changeset viewer.