Ignore:
Timestamp:
17 Feb 2012, 09:10:47 (13 years ago)
Author:
Henrik Bettermann
Message:

Carry-over course registration is optional and can now be switched on and off in the configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/studycourse.py

    r7661 r7664  
    6666                self[str(studylevel.level)][ticket.code] = ticket
    6767        # Collect carry-over courses in base levels (not in repeating levels)
    68         if studylevel.level % 100 == 0:
     68        try:
     69            co_enabled = grok.getSite()['configuration'].carry_over
     70        except TypeError:
     71            # In tests we might not have a site object
     72            co_enabled = True
     73        if co_enabled and studylevel.level % 100 == 0:
    6974            levels = sorted(self.keys())
    7075            index = levels.index(str(studylevel.level))
Note: See TracChangeset for help on using the changeset viewer.