Changeset 1676
- Timestamp:
- 10 Apr 2007, 12:08:13 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/create_level.py
r1659 r1676 35 35 36 36 if context.hasObject(current_level) and create_level : 37 logger.info('%s tried to add already existing level %s 37 logger.info('%s tried to add already existing level %s' % (student.id,current_level)) 38 38 return 39 39 … … 53 53 else: 54 54 context.invokeFactory('StudentStudyLevel',"%s" % current_level) 55 logger.info('%s created level %s' % (student.id,current_level)) 55 56 level = getattr(context,"%s" % current_level) 56 57 context.portal_workflow.doActionFor(level,'open') … … 58 59 level.getContent().edit(mapping={'session': study_session}) 59 60 context.portal_workflow.doActionFor(level,'close_for_edit') 60 response.redirect("%s?level_created=%s" % (context.absolute_url(),current_level))61 61 results = context.results_import(matric_no = student.matric_no) 62 62 if results:
Note: See TracChangeset for help on using the changeset viewer.