Changeset 3869 for WAeUP_SRP


Ignore:
Timestamp:
22 Jan 2009, 22:15:21 (16 years ago)
Author:
Henrik Bettermann
Message:

resolve ticket #584

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentLevelsVoc.py

    r3254 r3869  
    1515if key is None:
    1616    levels = [l for l in range(0,end_level+200,10)
    17                if l % 100 < 30 and l < end_level + 110]
     17               if l % 100 < 30 and l < end_level + 120]
    1818    voc = [('','')]
    1919    for l in levels:
    2020        level_nr,repeat = divmod(l, 100)
    21         if level_nr > end_level/100:
     21        if level_nr > end_level/100 and repeat:
     22            voc += ("%s" % l,"%s (2nd spillover)" % context.portal_vocabularies.levels.get("%d00" % (level_nr - 1))),
     23        elif level_nr > end_level/100:
    2224            voc += ("%s" % l,"%s (spillover)" % context.portal_vocabularies.levels.get("%d00" % (level_nr - 1))),
    2325        elif repeat > 0:
     
    4143    raise KeyError
    4244   
    43 if level_nr > end_level/100:
     45if level_nr > end_level/100 and repeat:   
     46    return "%s 2nd Spillover" % context.portal_vocabularies.levels.get("%d00" % (level_nr - 1))
     47elif level_nr > end_level/100:
    4448    return "%s Spillover" % context.portal_vocabularies.levels.get("%d00" % (level_nr - 1))
    4549
Note: See TracChangeset for help on using the changeset viewer.