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

Legend:

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

    r10650 r10685  
    2929from waeup.kofa.interfaces import IKofaPluggable
    3030from waeup.kofa.university.interfaces import (
    31     ICertificate, ICertificateAdd, ICertificateCourse)
     31    ICertificate, ICertificateCourse)
    3232from waeup.kofa.university.vocabularies import course_levels
    3333from waeup.kofa.utils.batching import VirtualExportJobContainer
     
    4040    """A certificate.
    4141    """
    42     grok.implements(ICertificate, ICertificateAdd)
     42    grok.implements(ICertificate)
    4343
    4444    local_roles = [
  • main/waeup.kofa/trunk/src/waeup/kofa/university/course.py

    r10650 r10685  
    2727from zope.component.interfaces import IFactory, ComponentLookupError
    2828from waeup.kofa.interfaces import IKofaPluggable
    29 from waeup.kofa.university.interfaces import ICourse, ICourseAdd
     29from waeup.kofa.university.interfaces import ICourse
    3030from waeup.kofa.utils.batching import VirtualExportJobContainer
    3131
     
    3737    """A university course.
    3838    """
    39     grok.implements(ICourse, ICourseAdd)
     39    grok.implements(ICourse)
    4040
    4141    local_roles = ['waeup.local.Lecturer']
  • main/waeup.kofa/trunk/src/waeup/kofa/university/department.py

    r10650 r10685  
    3030from waeup.kofa.interfaces import IKofaUtils, IKofaPluggable
    3131from waeup.kofa.utils.helpers import attrs_to_fields
    32 from waeup.kofa.university.interfaces import IDepartment, IDepartmentAdd
     32from waeup.kofa.university.interfaces import IDepartment
    3333
    3434class VirtualDepartmentExportJobContainer(VirtualExportJobContainer):
     
    3939    """A university department.
    4040    """
    41     grok.implements(IDepartment, IDepartmentAdd)
     41    grok.implements(IDepartment)
    4242
    4343    local_roles = [
  • main/waeup.kofa/trunk/src/waeup/kofa/university/interfaces.py

    r10684 r10685  
    6969        default = u'NA',
    7070        required = True,
    71         readonly = True,
    7271        )
    7372
     
    9796
    9897
    99 class IDepartmentAdd(IDepartment):
    100     """Representation of a university department.
    101     """
    102     code = schema.TextLine(
    103         title = _(u'Code'),
    104         description = _(u'This code will become part of the URL.'),
    105         default = u'NA',
    106         required = True,
    107         readonly = False,
    108         )
    109 
    110 IDepartmentAdd['code'].order =  IDepartment['code'].order
    111 
    11298class ICoursesContainer(IKofaContainer):
    11399    """A container for faculties.
     
    126112        default = u'NA',
    127113        required = True,
    128         readonly = True,
    129114        )
    130115
     
    164149
    165150
    166 class ICourseAdd(ICourse):
    167     """Representation of a course.
    168     """
    169     code = schema.TextLine(
    170         title = _(u'Code'),
    171         description = _(u'Enter unique course code which will become part of the URL.'),
    172         default = u'NA',
    173         required = True,
    174         readonly = False,
    175         )
    176 
    177 ICourseAdd['code'].order =  ICourse['code'].order
    178 
    179151class ICertificate(IKofaObject):
    180152    """Representation of a certificate.
     
    184156        default = u'NA',
    185157        required = True,
    186         readonly = True,
    187158        )
    188159
     
    282253
    283254
    284 class ICertificateAdd(ICertificate):
    285     """Representation of a certificate.
    286     """
    287     code = schema.TextLine(
    288         title = _(u'Code'),
    289         default = u'NA',
    290         description = _(u'Enter unique certificate code which will become part of the URL.'),
    291         required = True,
    292         readonly = False,
    293         )
    294 
    295 ICertificateAdd['code'].order =  ICertificate['code'].order
    296 
    297255class ICertificatesContainer(IKofaContainer):
    298256    """A container for certificates.
     
    311269        title = _(u'Course'),
    312270        source = CourseSource(),
    313         readonly = True,
    314271        )
    315272
     
    332289        This is needed for cataloging.
    333290        """
    334 
    335 class ICertificateCourseAdd(ICertificateCourse):
    336     """A certificatecourse is referring a course and
    337        provides some own attributes.
    338     """
    339     course = schema.Choice(
    340         title = _(u'Course'),
    341         source = CourseSource(),
    342         readonly = False,
    343         )
    344 
    345 ICertificateCourseAdd['course'].order =  ICertificateCourse['course'].order
Note: See TracChangeset for help on using the changeset viewer.