source: WAeUP_SRP/trunk/skins/waeup_default/process_waeup_login.py @ 420

Last change on this file since 420 was 350, checked in by joachim, 18 years ago

make site accessible for SectionReaders?

  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1##parameters=member=None,sc_pin=None
2# $Id: process_waeup_login.py 350 2006-07-19 09:33:54Z joachim $
3"""
4Process a student after login
5
6"""
7request = context.REQUEST
8response=request.response
9return
10##
11##if request.form.get('submit') == 'Login':
12##    #waeup = context.portal_catalog(id = 'demouni')[0]
13##    #waeup = context.portal_catalog(portal_type = 'University')[0]
14##    if 1 or "Manager" in member.getRoles():
15##        return
16###return
17##member_id = str(member)
18##ma = getattr(context,member_id)
19##jkw = {'admission_sc_pin': sc_pin}
20##jamb = getattr(ma,'JAMB')
21##jamb.getContent().edit(mapping=jkw)
22###pdid = 'personal%s' % member_id
23##pdid = 'PERSONAL'
24##ma.invokeFactory('StudentPersonal', pdid)
25##pd = getattr(ma,pdid)
26##pkw = {}
27##jc = jamb.getContent()
28##pkw['sex'] = getattr(jc,'sex')
29##pkw['firstname'] = getattr(jc,'firstname')
30##pkw['middlename'] = getattr(jc,'middlename')
31##pkw['lastname'] = getattr(jc,'lastname')
32##pkw['aggregate'] = getattr(jc,'aggregate')
33##pkw['faculty'] = getattr(jc,'faculty')
34##pkw['course'] = getattr(jc,'course')
35##pkw['age'] = getattr(jc,'age')
36##pkw['jamb_results'] = getattr(jc,'exam_results')
37##pkw['jamb_aggregate'] = getattr(jc,'aggregate')
38##pkw['jamb_listing_date'] = getattr(jc,'listing_date')
39##pkw['state'] = getattr(jc,'state')
40##
41##pd.getContent().edit(mapping=pkw)
42##context.notifyCPSDocumentCreation(ob=pd)
43##
44##pdid = 'DOCUMENTS'
45##ma.invokeFactory('StudentDocuments', pdid)
46##pd = getattr(ma,pdid)
47##context.notifyCPSDocumentCreation(ob=pd)
48##
49##pdid = 'ELIGIBILITY'
50##ma.invokeFactory('StudentEligibility', pdid)
51##pd = getattr(ma,pdid)
52##pd.getContent().edit(mapping=pkw)
53##context.notifyCPSDocumentCreation(ob=pd)
54##
55##return response.redirect("%s" % ma.absolute_url())
56###return ma.personal_addon(REQUEST=context.REQUEST)
57
Note: See TracBrowser for help on using the repository browser.