Changeset 2106 for WAeUP_SRP


Ignore:
Timestamp:
16 Aug 2007, 14:43:53 (17 years ago)
Author:
Henrik Bettermann
Message:

show view mode after application (please check lines 132 - 140)

File:
1 edited

Legend:

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

    r2105 r2106  
    5757if slip:
    5858    mode = "view_slip"
     59   
    5960res,psm,ds = lt.renderLayout(layout_id= 'application',
    6061                             schema_id= 'application',
     
    9495        data[field] = ds.get(field)
    9596data['reg_no'] = reg_no
    96 if apply_pume:
    97     data['application_date'] = current
    98     data['status'] = "submitted"
    99 context.applicants_catalog.modifyRecord(**data)
     97
    10098if apply_pume:
    10199    if not request.has_key('confirm'):
     
    105103        mode = "view"
    106104        psm = "You successfully applied for PUME"
     105        data['application_date'] = current
     106        data['status'] = "submitted"
     107        context.applicants_catalog.modifyRecord(**data)           
    107108elif create:
    108109    if submitted:
     
    125126    psm = "Content changed"
    126127
     128res,psm_dummy,ds = lt.renderLayout(layout_id= 'application',
     129                             schema_id= 'application',
     130                             layout_mode = mode,
     131                             context=context,
     132                             mapping=validate and REQUEST,
     133                             ob=object,
     134                             commit = False,
     135                            )
     136   
    127137return context.apply_pume_form(rendered = res,
    128138                            psm = psm,
Note: See TracChangeset for help on using the changeset viewer.