Changeset 5457
- Timestamp:
- 19 Aug 2010, 12:45:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/register_courses.py
r2091 r5457 8 8 ##title= 9 9 ## 10 # $Id: getStudyCourseInfo.py 1504 2007-02-26 21:20:40Z henrik $10 # $Id: register_courses.py 1504 2007-02-26 21:20:40Z henrik $ 11 11 """ 12 12 close the Students StudyLevel … … 33 33 student = getattr(students_folder,student_id) 34 34 35 info = context.getStudyLevelInfo() 36 if info['credits_exceeded']: 37 args = {} 38 args['portal_status_message'] = "Your total credits exceed %s!" % info['max_credits'] 39 url = context.absolute_url() + '?' + urlencode(args) 40 logger.info('%s tried to register course list with credits exceeded, probably by pressing the browser back button' % (student_id)) 41 return REQUEST.RESPONSE.redirect(url) 42 35 43 try: 36 44 wftool.doActionFor(student,'register_courses')
Note: See TracChangeset for help on using the changeset viewer.