source: WAeUP_SRP/trunk/skins/waeup_student/searchStudents.py @ 570

Last change on this file since 570 was 565, checked in by joachim, 19 years ago

removed Semester-type and semester-schema,
move StudyLevel? from Students.py to Academics.py
all Academics content has to be deleted before installing this !!!

File size: 761 bytes
RevLine 
[565]1## Script (Python) "cpsdocument_edit"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=student=None
8##title=
9##
10# $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $
11"""
12return Info about the current Student
13"""
14request = context.REQUEST
15form = request.form
16fget = form.get
17wf = context.portal_workflow
18mtool = context.portal_membership
19member = mtool.getAuthenticatedMember()
20path_info = request.get('PATH_INFO').split('/')
21roles = member.getRoles()
22info = {}
23info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
24student_id = fget('student_id')
25jamb_id = fget('jamb_id')
26matric_no = fget('matric_no')
27name = fget('name')
28info['students'] = []
29return info
Note: See TracBrowser for help on using the repository browser.