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
|
Rev | Line | |
---|
[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 | """ |
---|
| 12 | return Info about the current Student |
---|
| 13 | """ |
---|
| 14 | request = context.REQUEST |
---|
| 15 | form = request.form |
---|
| 16 | fget = form.get |
---|
| 17 | wf = context.portal_workflow |
---|
| 18 | mtool = context.portal_membership |
---|
| 19 | member = mtool.getAuthenticatedMember() |
---|
| 20 | path_info = request.get('PATH_INFO').split('/') |
---|
| 21 | roles = member.getRoles() |
---|
| 22 | info = {} |
---|
| 23 | info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles |
---|
| 24 | student_id = fget('student_id') |
---|
| 25 | jamb_id = fget('jamb_id') |
---|
| 26 | matric_no = fget('matric_no') |
---|
| 27 | name = fget('name') |
---|
| 28 | info['students'] = [] |
---|
| 29 | return info |
---|
Note: See
TracBrowser for help on using the repository browser.