Changeset 2771 for WAeUP_SRP/base
- Timestamp:
- 26 Nov 2007, 21:56:25 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2767 r2771 1474 1474 # the session string must not be copied into the level object 1475 1475 if student_rec.current_verdict and student_rec.current_level == level_id: 1476 level.getContent().edit(mapping={'verdict': "%s" % 1476 level.getContent().edit(mapping={'verdict': "%s" % 1477 1477 student_rec.current_verdict, 1478 'session': "%s" % 1478 'session': "%s" % 1479 1479 student_rec.current_session, 1480 1480 }) … … 1756 1756 d['verdict'] = mapping.get('current_verdict','') 1757 1757 d['session'] = mapping.get('current_session','') 1758 while d['session'] or d['verdict']: 1758 current_level = mapping.get('current_level','') 1759 while d['session'] and d['verdict'] and current_level: 1759 1760 sub_obj = getattr(student_obj,'study_course',None) 1760 1761 if sub_obj is None: 1761 1762 break 1762 level = getattr(sub_obj,mapping.get('current_level',None))1763 if levelis None:1763 level_obj = getattr(sub_obj,current_level) 1764 if level_obj is None: 1764 1765 break 1765 level .getContent().edit(mapping = d)1766 level_obj.getContent().edit(mapping = d) 1766 1767 try: 1767 wftool.doActionFor(level ,'close')1768 wftool.doActionFor(level_obj,'close') 1768 1769 except: 1769 1770 pass
Note: See TracChangeset for help on using the changeset viewer.