Changeset 2091 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
6 Aug 2007, 20:43:13 (17 years ago)
Author:
Henrik Bettermann
Message:

see comment 08/06/07 22:37:07: Modified by henrik in ticket 323

Joachim, please check!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/register_courses.py

    r2032 r2091  
    3232student_id = context.getStudentId()
    3333student = getattr(students_folder,student_id)
     34
     35try:
     36    wftool.doActionFor(student,'register_courses')
     37except WorkflowException,E:
     38    logger.info('%s WorkflowException %s for %s' % (member_id,E,student_id))
     39    return request.RESPONSE.redirect("%s" % context.absolute_url())
     40
    3441try:
    3542    wftool.doActionFor(context,'close')
     
    3845    #return request.RESPONSE.redirect("%s" % context.absolute_url())
    3946    pass
    40 try:
    41     wftool.doActionFor(student,'register_courses')
    42 except WorkflowException,E:
    43     logger.info('%s WorkflowException %s for %s' % (member_id,E,student_id))
    44     return request.RESPONSE.redirect("%s" % context.absolute_url())
     47
    4548logger.info('%s registered course list of %s' % (member_id,student_id))
    46 
    4749args = {}
    4850psm = "You successfully submitted your course list!"
Note: See TracChangeset for help on using the changeset viewer.