Last change
on this file since 540 was
538,
checked in by joachim, 18 years ago
|
fixed typo WAeUP Image Widget
introduced academicx_index and modified all types
|
File size:
1.1 KB
|
Line | |
---|
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=batch=None |
---|
8 | ##title= |
---|
9 | ## |
---|
10 | # $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $ |
---|
11 | """ |
---|
12 | return the current student_index_html |
---|
13 | """ |
---|
14 | |
---|
15 | request = context.REQUEST |
---|
16 | redirect = request.RESPONSE.redirect |
---|
17 | campus = context.portal_catalog(meta_type = "University")[-1].getObject() |
---|
18 | pm = context.portal_membership |
---|
19 | if pm.isAnonymousUser(): |
---|
20 | return redirect("%s/students_anonymous_view" % campus.students.absolute_url()) |
---|
21 | member = pm.getAuthenticatedMember() |
---|
22 | roles = member.getRoles() |
---|
23 | if "Manager" in roles or "SectionManager" in roles: |
---|
24 | return redirect("%s/students_manager_view" % campus.students.absolute_url()) |
---|
25 | |
---|
26 | info = context.getStudentInfo() |
---|
27 | student = info['student'] |
---|
28 | doc = info['app_doc'] |
---|
29 | state = context.getStudentInfo()['review_state'] |
---|
30 | if state == 'admission_applied': |
---|
31 | return redirect("%s/application_view" % student.absolute_url()) |
---|
32 | elif state == 'application_pin_entered': |
---|
33 | return redirect("%s/passport_entry_view" % student.absolute_url()) |
---|
Note: See
TracBrowser for help on using the repository browser.