Changeset 4483


Ignore:
Timestamp:
29 Jul 2009, 11:51:18 (15 years ago)
Author:
uli
Message:
  • Add required method getCourseCode for certificate courses.
  • Store certificate courses under a more specific ID <Course-Code>_<level>. This way one course can be used multiple times in certificates.
File:
1 edited

Legend:

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

    r4387 r4483  
    4646        """Add a course reference.
    4747        """
    48         code = course.code
     48        code = "%s_%s" % (course.code, level)
    4949        self[code] = CertificateCourse(course, level, core_or_elective)
    5050
     
    8282        self.core_or_elective = core_or_elective
    8383
     84    def getCourseCode(self):
     85        return self.course.code
     86   
    8487class CertificateCourseFactory(grok.GlobalUtility):
    8588    """A factory for certificate courses.
Note: See TracChangeset for help on using the changeset viewer.