Ignore:
Timestamp:
2 Nov 2013, 08:50:58 (11 years ago)
Author:
Henrik Bettermann
Message:

We do not need IFacultyAdd. A simple omit('code') does the same job.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/browser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/interfaces.py

    r9948 r10684  
    2424from waeup.kofa.interfaces import MessageFactory as _
    2525from waeup.kofa.university.interfaces import (
    26     IFacultiesContainer, IFaculty, IFacultyAdd, IDepartment, IDepartmentAdd,
     26    IFacultiesContainer, IFaculty, IDepartment, IDepartmentAdd,
    2727    ICoursesContainer, ICourse, ICourseAdd, ICertificatesContainer,
    2828    ICertificate, ICertificateAdd, ICertificateCourse, ICertificateCourseAdd)
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r10676 r10684  
    4646    KofaDisplayFormPage, NullValidator)
    4747from waeup.kofa.browser.interfaces import (
    48     IUniversity, IFacultiesContainer, IFaculty, IFacultyAdd,
     48    IUniversity, IFacultiesContainer, IFaculty,
    4949    IDepartment, IDepartmentAdd, ICourse, ICourseAdd, ICertificate,
    5050    ICertificateAdd, ICertificateCourse, ICertificateCourseAdd,
     
    17481748    grok.name('add')
    17491749    label = _('Add faculty')
    1750     form_fields = grok.AutoFields(IFacultyAdd)
     1750    form_fields = grok.AutoFields(IFaculty)
    17511751    pnav = 1
    17521752
     
    18001800    tabthreeactions2 = [_('Add local role')]
    18011801
    1802     form_fields = grok.AutoFields(IFaculty)
     1802    form_fields = grok.AutoFields(IFaculty).omit('code')
    18031803
    18041804    @property
Note: See TracChangeset for help on using the changeset viewer.