Changeset 767 for WAeUP_SRP/trunk


Ignore:
Timestamp:
27 Oct 2006, 18:41:45 (18 years ago)
Author:
Henrik Bettermann
Message:

changes made on the phone

Location:
WAeUP_SRP/trunk/skins
Files:
4 edited

Legend:

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

    r766 r767  
    5252            student = info['student']
    5353            if info['review_state'] in ("student_created","admitted"):
    54                 student.content_status_modify(workflow_action="enter_clearance_pin")
     54                #student.content_status_modify(workflow_action="enter_clearance_pin")
    5555                wftool.doActionFor(info['app'],'open',dest_container=info['app'])
    5656                da = {}
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r766 r767  
    7272s_edit_links = {'StudentApplication': 'student_edit',
    7373              'StudentAccommodation': '',
    74               'StudentClearance': '',
     74              'StudentClearance': 'clearance_student',
    7575              'StudentPersonal': '',
    7676              }
     
    9797    row['s_edit_link'] = None
    9898    if se_link:
    99         row['s_edit_link'] = "%s/%s" % (student.absolute_url(),se_link)
     99        row['s_edit_link'] = "%s/%s" % (soo.absolute_url(),se_link)
    100100    row['review_state'] = so.review_state
    101101    row['display'] = so.review_state in ('opened','closed',) or\
  • WAeUP_SRP/trunk/skins/waeup_student/student_edit.py

    r766 r767  
    7070            psm = 'psm_content_error'
    7171    else:
     72        psm = ''
    7273        args = {}
    7374        if info['review_state'] == "student_created":
     
    7677            psm = 'You applied for admission.'
    7778            action = "/application_view"
    78         elif info['review_state'] == "clearance_pin_entered":
    79             student.content_status_modify(workflow_action="request_clearance")
     79        elif info['review_state'] == "admitted":
     80            student.content_status_modify(workflow_action="enter_clearance_pin")
    8081            #wftool.doActionFor(info['clear'],'open',dest_container=info['clear'])
    81             da = {}
    82             pin = REQUEST.get('pin')
    83             da['app_ac_pin'] = pin
    84             da['app_ac_date'] = current
    8582            app_doc = info['app_doc']
    86             app_doc.edit(mapping = da)
    8783            dc = {}
    8884            dc['email'] = app_doc.appl_email
    8985            dc['mobil'] = app_doc.appl_mobile
    90             dc['passport'] = app_doc.passport
    9186            info['clear_doc'].edit(mapping = dc)
    9287            wftool.doActionFor(app,'close',dest_container= app)
    93             psm = 'You requested clearance.'
     88            psm = 'You successfully started the clearance process.'
    9489            action = "/clearance_view"
    9590        else:
    96             psm = ''
    9791            action = "/clearance_view"
    98            
     92
    9993else:
    10094    is_valid, ds = app_doc.validate(request=REQUEST, proxy=context, cluster=cluster,
  • WAeUP_SRP/trunk/skins/waeup_student/student_index.py

    r766 r767  
    3232    if state == 'admission_applied':
    3333        return redirect("%s/application_view" % student.absolute_url())
    34     elif state in ('application_pin_entered','clearance_pin_entered'):
     34    elif state in ('application_pin_entered','admitted'):
    3535        return redirect("%s/passport_entry_view" % student.absolute_url())
    36     elif state == 'request_clearance':
     36    elif state == 'clearance_pin_entered':
    3737        return redirect("%s/student_view" % info['clear'].absolute_url())
    3838    elif context.portal_type == 'StudentStudyLevel':
Note: See TracChangeset for help on using the changeset viewer.