Ignore:
Timestamp:
2 Nov 2013, 09:02:26 (11 years ago)
Author:
Henrik Bettermann
Message:

Remove other redundant interfaces, see previous revision.

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

    r10684 r10685  
    2424from waeup.kofa.interfaces import MessageFactory as _
    2525from waeup.kofa.university.interfaces import (
    26     IFacultiesContainer, IFaculty, IDepartment, IDepartmentAdd,
    27     ICoursesContainer, ICourse, ICourseAdd, ICertificatesContainer,
    28     ICertificate, ICertificateAdd, ICertificateCourse, ICertificateCourseAdd)
     26    IFacultiesContainer, IFaculty, IDepartment,
     27    ICoursesContainer, ICourse, ICertificatesContainer,
     28    ICertificate, ICertificateCourse)
    2929
    3030class IBreadcrumb(Interface):
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r10684 r10685  
    4747from waeup.kofa.browser.interfaces import (
    4848    IUniversity, IFacultiesContainer, IFaculty,
    49     IDepartment, IDepartmentAdd, ICourse, ICourseAdd, ICertificate,
    50     ICertificateAdd, ICertificateCourse, ICertificateCourseAdd,
     49    IDepartment, ICourse, ICertificate,
     50    ICertificateCourse,
    5151    ICaptchaManager, IChangePassword)
    5252from waeup.kofa.browser.layout import jsaction, action, UtilityView
     
    19041904    grok.require('waeup.manageAcademics')
    19051905    label = _('Add department')
    1906     form_fields = grok.AutoFields(IDepartmentAdd)
     1906    form_fields = grok.AutoFields(IDepartment)
    19071907    pnav = 1
    19081908
     
    19771977    tabfouractions2 = [_('Add local role')]
    19781978
    1979     form_fields = grok.AutoFields(IDepartment)
     1979    form_fields = grok.AutoFields(IDepartment).omit('code')
    19801980
    19811981    @property
     
    20582058    grok.require('waeup.manageAcademics')
    20592059    label = _(u'Add course')
    2060     form_fields = grok.AutoFields(ICourseAdd)
     2060    form_fields = grok.AutoFields(ICourse)
    20612061    pnav = 1
    20622062
     
    20992099    grok.require('waeup.manageAcademics')
    21002100    label = _(u'Add certificate')
    2101     form_fields = grok.AutoFields(ICertificateAdd)
     2101    form_fields = grok.AutoFields(ICertificate)
    21022102    pnav = 1
    21032103
     
    21632163    tabtwoactions2 = [_('Add local role')]
    21642164
    2165     form_fields = grok.AutoFields(ICourse)
     2165    form_fields = grok.AutoFields(ICourse).omit('code')
    21662166
    21672167    def update(self):
     
    22242224    label = _('Edit certificate')
    22252225
    2226     form_fields = grok.AutoFields(ICertificate)
     2226    form_fields = grok.AutoFields(ICertificate).omit('code')
    22272227
    22282228    pnav = 1
     
    22832283    grok.name('addcertificatecourse')
    22842284    grok.require('waeup.manageAcademics')
    2285     form_fields = grok.AutoFields(ICertificateCourseAdd)
     2285    form_fields = grok.AutoFields(ICertificateCourse)
    22862286    pnav = 1
    22872287    label = _('Add certificate course')
     
    23362336    grok.name('manage')
    23372337    grok.require('waeup.manageAcademics')
    2338     form_fields = grok.AutoFields(ICertificateCourse)
     2338    form_fields = grok.AutoFields(ICertificateCourse).omit('code')
    23392339    label = _('Edit certificate course')
    23402340    pnav = 1
Note: See TracChangeset for help on using the changeset viewer.