Ignore:
Timestamp:
5 Jan 2013, 13:48:04 (12 years ago)
Author:
Henrik Bettermann
Message:

delCertCourse deletes all certificate courses referring to the same course if level is not given. This has caused a KeyError? in handle_course_removed.

Tests will follow.

File:
1 edited

Legend:

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

    r9341 r9824  
    7575
    7676    def delCertCourse(self, code, level=None):
    77         """Delete a certificate course denoted by its code.
     77        """Delete certificate courses.
     78
     79        We might have more than one certificate course for a course.
     80        If level is not provided all certificate courses referring
     81        to the same course will be deleted.
    7882        """
    7983        keys = list(self.keys()) # create list copy
Note: See TracChangeset for help on using the changeset viewer.