Ignore:
Timestamp:
10 Jul 2012, 05:59:16 (12 years ago)
Author:
Henrik Bettermann
Message:

Add 'is_staff' attribute. Customize StudentBaseDisplayFormPage?.

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

Legend:

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

    r8946 r8966  
    2828    StudentClearanceDisplayFormPage, OnlinePaymentFakeApprovePage,
    2929    ExportPDFClearanceSlipPage, StudentBaseManageFormPage,
     30    StudentBaseDisplayFormPage,
    3031    StudentBaseEditFormPage, StudentPersonalEditFormPage,
    3132    OnlinePaymentDisplayFormPage, OnlinePaymentAddFormPage,
     
    5152    grok.context(INigeriaStudentOnlinePayment)
    5253
     54class NigeriaStudentBaseDisplayFormPage(StudentBaseDisplayFormPage):
     55    """ Page to display student base data
     56    """
     57    form_fields = grok.AutoFields(INigeriaStudentBase).omit('password')
     58
    5359class NigeriaStudentBaseManageFormPage(StudentBaseManageFormPage):
    5460    """ View to manage student base data
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/interfaces.py

    r8949 r8966  
    4747        )
    4848
     49    is_staff = schema.Bool(
     50        title = _(u'Staff Member'),
     51        required = False,
     52        readonly = False,
     53        default = False,
     54        )
     55
    4956INigeriaStudentBase['reg_number'].order = IStudentBase[
    5057    'reg_number'].order
Note: See TracChangeset for help on using the changeset viewer.