Ignore:
Timestamp:
12 Nov 2006, 17:01:34 (18 years ago)
Author:
joachim
Message:

new logig for the Apply/Finally? in application_edit and clearance_edit
the field acknow can be removed from clearance schema and layouts (to be done)

File:
1 edited

Legend:

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

    r845 r851  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=REQUEST,proceed=None, cpsdocument_edit_button=None, action=None
     7##parameters=REQUEST, cpsdocument_edit_button=None, cpsdocument_edit_and_view_button=None, action=None
    88##title=
    99# $Id$
     
    4242base_url = app.absolute_url()
    4343
    44 if app_doc.passport is not None:
    45     args['proceed'] = 'Continue'
    46 
    47 if cpsdocument_edit_button:
    48     if is_valid:
     44if is_valid:
     45    if cpsdocument_edit_button:
    4946        if app_doc.passport is not None:
    5047            args['portal_status_message'] = 'You successfully uploaded your passport picture.'
    5148        else:
    5249            args['portal_status_message'] = "You didn't upload a passport picture."
    53 elif proceed:
    54     if is_valid:
    55         action = "/start_clearance"
    56         base_url = student.absolute_url()
    57         url = base_url + action
    58         return REQUEST.RESPONSE.redirect(url)
    59     else:
    60         args['portal_status_message'] = 'psm_content_error'
     50    elif cpsdocument_edit_and_view_button:
     51        if app_doc.passport is not None:
     52            action = "/start_clearance"
     53            base_url = student.absolute_url()
     54            url = base_url + action
     55            return REQUEST.RESPONSE.redirect(url)
     56        else:
     57            args['portal_status_message'] = "You didn't upload a passport picture."
    6158if args:
    6259  url = base_url + action + '?' + urlencode(args)
Note: See TracChangeset for help on using the changeset viewer.