Ignore:
Timestamp:
6 Oct 2007, 08:04:42 (17 years ago)
Author:
Henrik Bettermann
Message:

make apply_pume work (not yet finished)

Location:
WAeUP_SRP/base/skins/waeup_student
Files:
2 edited

Legend:

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

    r2316 r2322  
    6363elif traverse_subpath and traverse_subpath[0] == "pde":
    6464    layout = "application_pde"
    65     application_type = "pce"
     65    application_type = "pde"
    6666elif traverse_subpath and traverse_subpath[0] == "cest":
    6767    layout = "application_cest"
    68     application_type = "pce"
     68    application_type = "cest"
    6969else:
    7070    return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
     
    7979if not reg_no:
    8080    reg_no = request.form.get('reg_no','').upper()
    81 
    82 
     81if not reg_no:
     82    reg_no = request.get('widget__pin_n','').upper()
    8383
    8484object = {}
     
    117117                             commit = False,
    118118                            )
     119                           
     120                       
    119121
    120122if slip:
     
    146148if without_reg_no:
    147149    reg_no = ds.get('reg_no')
     150   
     151 
    148152data = {}
    149153dm = ds.getDataModel()
     
    152156        data[field] = dm.get(field)
    153157data['reg_no'] = reg_no
     158data['screening_type'] = application_type
     159
     160
    154161
    155162if apply_admission:
     
    227234        psm = "Content changed!"
    228235        data['status'] = "edited"
     236        #set_trace()
    229237        context.applicants_catalog.modifyRecord(**data)
    230238        logger.info('%s/%s modified application record' % (member,reg_no))
  • WAeUP_SRP/base/skins/waeup_student/apply_admission_form.pt

    r2316 r2322  
    3434                 tal:attributes="value ds/pin|nothing"
    3535                 tal:condition="ds/pin|nothing"/>
    36           <input type="hidden" name="application_type"
    37                  tal:attributes="value application_type|nothing"
    38                  tal:condition="application_type|nothing"/>
    39                  
     36               
    4037          <div tal:replace="structure rendered_main" />
    4138         
Note: See TracChangeset for help on using the changeset viewer.