Changeset 3416 for WAeUP_SRP


Ignore:
Timestamp:
3 Apr 2008, 16:24:18 (17 years ago)
Author:
Henrik Bettermann
Message:

slip_mode wieder eingebaut, war verlorengegangen, bitte testen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/apply_admission.py

    r3414 r3416  
    176176    if object['status'] and ('submitted' in object['status'] or 'admitted' in object['status'] or 'created' in object['status']):
    177177        submitted = True
    178     # cannot happen anymore but anyway   
     178    # cannot happen anymore but anyway
    179179    if not (create or slip) and (pin != object['pin'] and not context.isSectionOfficer()):
    180180        logger.info('%s/%s entered wrong pin %s' % (member,reg_no,pin))
     
    182182
    183183    #rerender with current object = application-record
     184   
     185    if slip:
     186        mode = "view_slip"
     187        logger.info('%s/%s views application slip' % (member,reg_no))
     188   
    184189    res,psm,ds = lt.renderLayout(layout_id= layout,
    185190                                schema_id= 'import_application',
     
    190195                                commit = False,
    191196                                )
     197    if slip:
     198        return context.apply_admission_slip(rendered = res,
     199                                            psm = "",
     200                                            mode = mode,
     201                                            ds = ds,
     202                                            info = info,
     203                                           )                               
     204                               
    192205    if psm == 'invalid':
    193206        return context.apply_admission_form(rendered = res,
Note: See TracChangeset for help on using the changeset viewer.