Changeset 1576 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 18 Mar 2007, 14:48:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/create_level.py
r1571 r1576 30 30 cert_id = student.course 31 31 current_level = student.level 32 in_progress = session.get('in_progress','finished') 33 if in_progress == 'finished': 32 in_progress = request.get('in_progress','not started') 33 34 if context.hasObject(current_level): 35 response.redirect("%s/%s" % (context.absolute_url(),current_level)) 36 return 37 38 if in_progress in ('not started','started'): 34 39 session.set('in_progress','started') 35 view = context.in_progress_view(refresh=3,page=' %s/study_level_view' % current_level)40 view = context.in_progress_view(refresh=3,page='create_level?in_progress=started') 36 41 response.setHeader('Content-type','text/html; charset=ISO-8859-15') 37 42 response.setHeader('Content-length','%d' % (len(view))) … … 39 44 response.write(view) 40 45 response.write('') 41 elif in_progress == 'started': 42 return 43 44 if context.hasObject(current_level): 45 return 46 level = getattr(context,current_level) 47 return response.redirect("%s" % level.absolute_url()) 46 if in_progress == 'started': 47 return 48 48 49 49 50 context.invokeFactory('StudentStudyLevel',"%s" % current_level) … … 105 106 d['core_or_elective'] = getattr(c.getObject().getContent(),'core_or_elective') 106 107 course_result.getContent().edit(mapping=d) 107 session.set('in_progress','finished')108 108 return
Note: See TracChangeset for help on using the changeset viewer.