Ignore:
Timestamp:
27 Oct 2006, 16:35:27 (18 years ago)
Author:
joachim
Message:

added request_clearance

File:
1 edited

Legend:

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

    r753 r766  
    5151            info = context.getStudentInfo()
    5252            student = info['student']
    53             if info['review_state'] == "student_created":
    54                 student.content_status_modify(workflow_action="enter_application_pin")
     53            if info['review_state'] in ("student_created","admitted"):
     54                student.content_status_modify(workflow_action="enter_clearance_pin")
    5555                wftool.doActionFor(info['app'],'open',dest_container=info['app'])
    5656                da = {}
    5757                pin = request.get('pin')
     58                app_doc = info['app_doc']
    5859                da['app_ac_pin'] = pin
    5960                da['app_ac_date'] = current
    60                 info['app_doc'].edit(mapping = da)
     61                app_doc.edit(mapping = da)
     62                dc = {}
     63                dc['clr_ac_pin'] = pin
     64                dc['entry_date'] = current
     65                dc['session'] = "%s" % current.year()
     66                dc['lga'] = app_doc.jamb_lga
     67                info['clear_doc'].edit(mapping = dc)
    6168        elif "Manager" in member.getRoles():
    6269            pass
Note: See TracChangeset for help on using the changeset viewer.