Ignore:
Timestamp:
23 Sep 2012, 12:23:42 (12 years ago)
Author:
Henrik Bettermann
Message:

If a former course attribute is set, we make sure that referrers in a
certificatescontainer are removed.

File:
1 edited

Legend:

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

    r9220 r9227  
    9090    return
    9191
     92@grok.subscribe(ICourse, grok.IObjectModifiedEvent)
     93def handle_set_former_course(course, event):
     94    """If a former course attribute is set, we make sure that referrers in a
     95       certificatescontainer are removed.
     96    """
     97    if event.object.former_course:
     98        handle_course_removed(course, event)
     99    return
     100
    92101class CoursesPlugin(grok.GlobalUtility):
    93102    """A plugin that updates courses.
Note: See TracChangeset for help on using the changeset viewer.