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/university
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/university/faculty.py

    r10650 r10684  
    2525from waeup.kofa.interfaces import IKofaUtils
    2626from waeup.kofa.university.interfaces import (
    27     IFaculty, IFacultyAdd, IDepartment)
     27    IFaculty, IDepartment)
    2828
    2929def longtitle(inst):
     
    3838    """A university faculty.
    3939    """
    40     grok.implements(IFaculty, IFacultyAdd)
     40    grok.implements(IFaculty)
    4141
    4242    local_roles = [
  • main/waeup.kofa/trunk/src/waeup/kofa/university/interfaces.py

    r10650 r10684  
    3939        default = u'NA',
    4040        required = True,
    41         readonly = True,
    4241        )
    4342
     
    5554        )
    5655
    57 
    58 class IFacultyAdd(IFaculty):
    59     """Representation of a university faculty.
    60     """
    61     code = schema.TextLine(
    62         title = _(u'Code'),
    63         description = _(u'This code will become part of the URL.'),
    64         default = u'NA',
    65         required = True,
    66         readonly = False,
    67         )
    68 
    69 IFacultyAdd['code'].order =  IFaculty['code'].order
    7056
    7157class IFacultiesContainer(IKofaContainer):
Note: See TracChangeset for help on using the changeset viewer.