Ignore:
Timestamp:
15 Apr 2011, 09:46:16 (13 years ago)
Author:
Henrik Bettermann
Message:

Courses and courses references (certificate courses) must be distinguishable.

Implement different interfaces for certificates.

File:
1 edited

Legend:

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

    r5005 r5950  
    77from waeup.sirp.university.interfaces import (
    88    IFacultyContainer, IFaculty, IDepartment, ICourseContainer, ICourse,
    9     ICertificateContainer, ICertificate, ICertificateCourse)
     9    ICertificateContainer, ICertificate, ICertificateCourse, CourseSource)
    1010
    1111class IBreadcrumb(Interface):
     
    5555        """Get the list of breadcrumbs as real Python list.
    5656        """
     57       
     58class ICertificateCourseAdd(ICertificateCourse):
     59    """A certificatecourse is a course referenced by a certificate, which
     60       provides some own attributes.
     61    """
     62    course = schema.Choice(
     63        title = u'Course to be referenced',
     64        source = CourseSource(),
     65        readonly = False,
     66        )
     67   
     68    level = schema.Int(
     69        title = u'Level of this course',
     70        required = True,
     71        default = 100,
     72        readonly = False,
     73        )   
     74
     75    core_or_elective = schema.Bool(
     76        title = u'Is mandatory course (not elective)',
     77        required = True,
     78        default = True
     79        )       
Note: See TracChangeset for help on using the changeset viewer.