Changeset 17924


Ignore:
Timestamp:
12 Sep 2024, 10:14:59 (3 months ago)
Author:
Henrik Bettermann
Message:

Use correct interface.

Location:
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students
Files:
2 edited

Legend:

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

    r17843 r17924  
    4141from kofacustom.nigeria.students.browser import (
    4242    NigeriaOnlinePaymentDisplayFormPage,
     43    NigeriaStudentBaseDisplayFormPage,
    4344    NigeriaStudentBaseManageFormPage,
    4445    NigeriaStudentClearanceEditFormPage,
     
    5253from kofacustom.unidel.students.interfaces import (
    5354    ICustomStudent,
     55    ICustomStudentBase,
    5456    ICustomStudentOnlinePayment,
    5557    ICustomStudentStudyCourse,
     
    5961    ICustomCourseTicket)
    6062from kofacustom.unidel.interfaces import MessageFactory as _
     63
     64class CustomStudentBaseDisplayFormPage(NigeriaStudentBaseDisplayFormPage):
     65    """ Page to display student base data
     66    """
     67    form_fields = grok.AutoFields(ICustomStudentBase).omit(
     68        'password', 'suspended', 'suspended_comment',
     69        'flash_notice', 'provisionally_cleared')
     70    form_fields[
     71        'financial_clearance_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     72    form_fields[
     73        'final_clearance_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     74
     75class CustomStudentBaseManageFormPage(NigeriaStudentBaseManageFormPage):
     76    """ View to manage student base data
     77    """
     78    form_fields = grok.AutoFields(ICustomStudentBase).omit(
     79        'student_id', 'adm_code', 'suspended',
     80        'financially_cleared_by', 'financial_clearance_date',
     81        'finally_cleared_by', 'final_clearance_date')
    6182
    6283class CustomBedTicketAddPage(NigeriaBedTicketAddPage):
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/interfaces.py

    r17921 r17924  
    3636
    3737    email2 = schema.ASCIILine(
    38         title = _(u'Institution Email'),
     38        title = _(u'Institutional Email'),
    3939        required = False,
    4040        constraint=validate_email,
     
    4242
    4343ICustomStudentBase['email2'].order = ICustomStudentBase[
    44     'phone'].order
     44    'email'].order
    4545
    4646class ICustomStudentPersonal(INigeriaStudentPersonal):
Note: See TracChangeset for help on using the changeset viewer.