Ignore:
Timestamp:
20 Sep 2006, 10:38:05 (18 years ago)
Author:
joachim
Message:

fixed #21

File:
1 edited

Legend:

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

    r537 r539  
    2020form in the session.
    2121"""
    22 
     22wftool = context.portal_workflow
    2323from urllib import urlencode
    2424from Products.CPSDocument.utils import getFormUidUrlArg
     
    5050                                    use_session=True)
    5151   
    52         action = "/student_edit"
    53         if is_valid:
     52        action = "/passport_entry_view"
     53        if is_valid and app_doc.passport is not None:
    5454            psm = 'You successfully uploaded your passport image.'
     55            args = {'apply_button': 'Save and Apply',}
     56        else:
     57            psm = "You didn't upload a passport image."
    5558            args = {}
    56         else:
    57             psm = 'psm_content_error'
    58             args = getFormUidUrlArg(REQUEST)
    5959    elif 'apply_admission' not in REQUEST.form:
    6060        is_valid, ds = app_doc.validate(request=REQUEST,
     
    7373        else:
    7474            args = getFormUidUrlArg(REQUEST)
    75             #psm = 'psm_content_error'
    76             psm = '%s' % ds
     75            psm = 'psm_content_error'
    7776    else:
    7877        args = {}
     78        wftool.doActionFor(app,'close',dest_container= app)
    7979        psm = 'You applied for admission.'
    8080        action = "/application_view"
     
    9696        args = {}
    9797    else:
    98         info['app'].content_status_modify(workflow_action="close")
    9998        psm = 'psm_content_error'
    10099        args = getFormUidUrlArg(REQUEST)
Note: See TracChangeset for help on using the changeset viewer.