Changeset 1860 for WAeUP_SRP/trunk


Ignore:
Timestamp:
7 Jun 2007, 20:06:29 (17 years ago)
Author:
joachim
Message:

fix for #216 please test

File:
1 edited

Legend:

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

    r1853 r1860  
    1 z## Script (Python) "clearance_edit"
     1## Script (Python) "clearance_edit"
    22##bind container=container
    33##bind context=context
     
    5252                  'ref_let',
    5353                  'acc_let'
    54                   )
     54                 )
    5555form = request.form
    5656psm = ""
    5757args = {}
    5858action = "/external_clearance_edit_form"
     59clearance_closed = False
     60
    5961if context.isStudent():
    6062    action = "/clearance_edit_form"
     63    if info['clear_review_state'] == 'closed':
     64        clearance_closed = True
    6165
    62 is_valid, ds = clear_doc.validate(request=REQUEST,
     66if not clearance_closed:
     67    is_valid, ds = clear_doc.validate(request=REQUEST,
    6368                                schema_id = 'student_clearance',
    6469                                layout_id = 'student_clearance',
    6570                                proxy=clear,
    6671                                use_session=True)
    67 
    6872if clear_and_validate_button and info['review_state'] == "clearance_requested":
    6973    logger.info('%s cleared %s' % (member_id,student_id ))
     
    8488    args['subject'] = subject
    8589    args['continue'] = 'external_clearance_edit_form'
     90elif clearance_closed:
     91    action = "/clearance_view"
     92    logger.info('%s tried to edit closed clearance of %s' % (member_id,student_id ))
    8693elif is_valid:
    8794    if cpsdocument_edit_button or result_edit_button:
Note: See TracChangeset for help on using the changeset viewer.