Ignore:
Timestamp:
19 Sep 2012, 14:24:18 (12 years ago)
Author:
Henrik Bettermann
Message:

In case we need to immediately deactivate clearance.

File:
1 edited

Legend:

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

    r8914 r9205  
    1919from zope.i18n import translate
    2020from waeup.kofa.widgets.datewidget import FriendlyDatetimeDisplayWidget
     21from waeup.kofa.students.browser import (
     22    StudentClearPage, StudentRejectClearancePage)
    2123from kofacustom.nigeria.students.browser import (
    2224    NigeriaOnlinePaymentDisplayFormPage,
     
    4951    form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    5052    form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     53
     54
     55## In case we need to deactivate clearance
     56#class CustomStudentClearPage(StudentClearPage):
     57#    """ Clear student by clearance officer
     58#    """
     59#    def update(self):
     60#        self.flash('Clearance temporarily disabled!')
     61#        self.redirect(self.url(self.context,'view_clearance'))
     62#        return
     63
     64#class CustomStudentRejectClearancePage(StudentRejectClearancePage):
     65#    """ Reject clearance by clearance officers
     66#    """
     67
     68#    def update(self):
     69#        self.flash('Clearance temporarily disabled!')
     70#        self.redirect(self.url(self.context,'view_clearance'))
     71#        return
Note: See TracChangeset for help on using the changeset viewer.