Ignore:
Timestamp:
14 Oct 2014, 10:28:24 (10 years ago)
Author:
Henrik Bettermann
Message:

Customize IFaculty and IDepartment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.pcn/trunk/src/kofacustom/pcn/browser/pages.py

    r11839 r11840  
    2020    SessionConfigurationAddFormPage, SessionConfigurationManageFormPage,
    2121    LoginPage, CertificatePage, CertificateManageFormPage, DepartmentPage,
    22     DepartmentManageFormPage, CertificateAddFormPage, DepartmentAddFormPage)
    23 from waeup.kofa.university.interfaces import IDepartment, ICertificate
     22    DepartmentManageFormPage, CertificateAddFormPage, DepartmentAddFormPage,
     23    FacultyManageFormPage, FacultyAddFormPage)
     24from waeup.kofa.university.interfaces import ICertificate
    2425from kofacustom.pcn.interfaces import (
    2526    ICustomSessionConfiguration, ICustomSessionConfigurationAdd)
     27
     28from kofacustom.pcn.university.faculty import IDepartment, IFaculty
    2629
    2730grok.templatedir('templates')
     
    3639    """
    3740    form_fields = grok.AutoFields(ICustomSessionConfiguration)
     41
     42
     43class FacultyAddFormPage(FacultyAddFormPage):
     44    """ Page form to add a new faculty to a faculty container.
     45    """
     46    form_fields = grok.AutoFields(IFaculty)
     47
     48class FacultyManageFormPage(FacultyManageFormPage):
     49    """Manage the basic properties of a `Faculty` instance.
     50    """
     51    form_fields = grok.AutoFields(IFaculty).omit('code')
    3852
    3953class DepartmentPage(DepartmentPage):
Note: See TracChangeset for help on using the changeset viewer.