Changeset 1639 for WAeUP_SRP/trunk/skins
- Timestamp:
- 26 Mar 2007, 14:31:22 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/create_level.py
r1635 r1639 33 33 34 34 if context.hasObject(current_level): 35 logger.info('%s", level %s already exists' % (student.id,current_level)) 35 36 response.redirect("%s/%s" % (context.absolute_url(),current_level)) 36 37 return 37 38 38 if in_progress in ('not started','started'):39 session.set('in_progress','started')40 view = context.in_progress_view(refresh=20,page='create_level?in_progress=started')41 response.setHeader('Content-type','text/html; charset=ISO-8859-15')42 response.setHeader('Content-length','%d' % (len(view)))43 response.setStatus('OK')44 response.write(view)45 response.write('')46 if in_progress == 'started':47 return39 ##if in_progress in ('not started','started'): 40 ## session.set('in_progress','started') 41 ## view = context.in_progress_view(refresh=20,page='create_level?in_progress=started') 42 ## response.setHeader('Content-type','text/html; charset=ISO-8859-15') 43 ## response.setHeader('Content-length','%d' % (len(view))) 44 ## response.setStatus('OK') 45 ## response.write(view) 46 ## response.write('') 47 ## if in_progress == 'started': 48 ## return 48 49 49 50
Note: See TracChangeset for help on using the changeset viewer.