Changeset 1347 for WAeUP_SRP/trunk


Ignore:
Timestamp:
25 Jan 2007, 10:34:33 (18 years ago)
Author:
Henrik Bettermann
Message:

open personal object if in state cleared_and_validated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r1346 r1347  
    6464        s_review_state = wftool.getInfoFor(student,'review_state',None)
    6565        a_review_state = wftool.getInfoFor(student_app,'review_state',None)
     66        student_per = getattr(student,'personal',None)
     67        p_review_state = wftool.getInfoFor(student_per,'review_state',None)
    6668        logger.info('"%s", "logged in", "review_state %s"' % (member,s_review_state))
    6769        app_doc = student_app.getContent()
     
    108110                da['app_ac_pin'] = pin
    109111                app_doc.edit(mapping = da)
     112        elif s_review_state in ("cleared_and_validated",) and\
     113                             p_review_state == 'created' :
     114            wftool.doActionFor(student_per,'open')
     115       
    110116        if s_review_state == "application_pin_entered":
    111117            redirect_url = "%s/application_edit_form" % student.absolute_url()
     
    114120        elif s_review_state == "clearance_pin_entered":
    115121            redirect_url = "%s/clearance_edit_form" % student.absolute_url()
     122        elif s_review_state == "cleared_and_validated":
     123            redirect_url = "%s/personal_edit_form" % student.absolute_url()
    116124        elif s_review_state == "returning":
    117125            redirect_url = "%s/session_results_view" % student.absolute_url()
Note: See TracChangeset for help on using the changeset viewer.