source: WAeUP_SRP/trunk/skins/waeup_student/display_pume_result.py.org @ 1004

Last change on this file since 1004 was 966, checked in by joachim, 18 years ago

created new catalog pumeresults for pumeresult checking
modified pume_anon_view and pume_anon_slip to use it.

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1##parameters=REQUEST
2# $Id: display_pume_result.py.org 966 2006-11-29 14:26:31Z joachim $
3"""
4process the Application Form
5return html renderer + psm
6"""
7import DateTime
8current = DateTime.DateTime()
9pr = context.portal_registration
10
11
12type_name = 'StudentApplication'
13ti = context.portal_types[type_name]
14REQUEST.set('type_name',type_name)
15
16validate = REQUEST.has_key("cpsdocument_create_button")
17
18lt = context.portal_layouts
19pr = context.portal_registration
20
21res,psm,ds = lt.renderLayout(layout_id= 'student_application_search',
22                      schema_id= 'student_application',
23                      context=context,
24                      mapping=validate and REQUEST,
25                      ob={},
26                      layout_mode='create',
27                      formaction = "display_pume_result",
28                      button = "Search",
29                      )
30if psm == 'invalid':
31    return context.display_pume_result_form(rendered = res,
32                                 psm = "Please correct your input!",
33                                 #psm = "%s, %s" % (psm,ds),
34                                 firstlayout = True,
35                                 lastlayout = True,
36                                 ds = ds,
37                                 )
38elif psm == '':
39    return context.display_pume_result_form(rendered = res,
40                                 psm = None,
41                                 firstlayout = True,
42                                 lastlayout = True,
43                                 ds = ds,
44                                 )
45elif psm == 'valid':
46    url = "%s/campus/students/%s/pume/pume_anon_view" % (context.portal_url(),ds['s_id'])
47    return REQUEST.RESPONSE.redirect(url)
48
49
50return
51
52
Note: See TracBrowser for help on using the repository browser.