- Timestamp:
- 5 Feb 2007, 15:59:08 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/fixLevelFromResults.py
r1391 r1392 44 44 res = scat() 45 45 for sbrain in res: 46 47 old_level = str(sbrain.level) 48 46 49 if str(sbrain.level) == '100': 47 50 ec = "new" … … 58 61 level = "%d" % (int(level) + 100) 59 62 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="") 62 64 63 65 while True: … … 70 72 if study_course is None: 71 73 break 72 # zum Testen auskommentiert73 #study_course.getContent().edit(mapping = {'current_level':level})74 74 75 #dies ist der richtige Platz75 study_course.getContent().edit(mapping = {'current_level':level}) 76 76 context.students_catalog.modifyRecord(id = sbrain.id, level=level) 77 77 78 78 ec = "reg" 79 79 break 80 if sbrain.level: 81 old_level = str(sbrain.level) 82 else: 83 old_level = 'non' 80 84 81 # rwrite(ec +"--"+ sbrain.id +"--"+ sbrain.matric_no +"--"+ old_level +"--"+ level +"<br />") 85 82
Note: See TracChangeset for help on using the changeset viewer.