Changeset 4320 for waeup


Ignore:
Timestamp:
20 Jun 2009, 19:22:02 (16 years ago)
Author:
uli
Message:

Add interface for certificate courses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/interfaces.py

    r4310 r4320  
    222222        """
    223223
     224class ICertificateCourse(IWAeUPObject):
     225    """A course as part of a certificate.
     226    """
     227    course = Attribute("A course instance.")
     228
     229    level = schema.Int(
     230        title = u'Level of this course',
     231        required = True,
     232        default = 100
     233        )
     234
     235    core_or_elective = schema.Bool(
     236        title = u'Is mandatory course (not elective)',
     237        required = True,
     238        default = True
     239        )
     240       
    224241class IWAeUPExporter(Interface):
    225242    """An exporter for objects.
Note: See TracChangeset for help on using the changeset viewer.