Ignore:
Timestamp:
5 Feb 2007, 15:59:08 (18 years ago)
Author:
Henrik Bettermann
Message:

gemaess Telefongespräch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_utilities/fixLevelFromResults.py

    r1391 r1392  
    4444res = scat()
    4545for sbrain in res:
     46
     47    old_level = str(sbrain.level)
     48 
    4649    if str(sbrain.level) == '100':
    4750        ec = "new"
     
    5861        level = "%d" % (int(level) + 100)
    5962
    60         # würde ich an dieser Stelle nicht machen (siehe unten)
    61         #context.students_catalog.modifyRecord(id = sbrain.id, level=level)
     63        context.students_catalog.modifyRecord(id = sbrain.id, level="")
    6264
    6365        while True:
     
    7072            if study_course is None:
    7173                break
    72             # zum Testen auskommentiert   
    73             #study_course.getContent().edit(mapping = {'current_level':level})
    7474
    75             #dies ist der richtige Platz
     75            study_course.getContent().edit(mapping = {'current_level':level})
    7676            context.students_catalog.modifyRecord(id = sbrain.id, level=level)
    7777
    7878            ec = "reg"
    7979            break
    80         if sbrain.level:
    81             old_level = str(sbrain.level)
    82         else:
    83             old_level = 'non'
     80
    8481#        rwrite(ec +"--"+ sbrain.id +"--"+ sbrain.matric_no +"--"+ old_level +"--"+ level +"<br />")
    8582
Note: See TracChangeset for help on using the changeset viewer.