Last change
on this file since 504 was
290,
checked in by joachim, 18 years ago
|
=add actions changed
|
-
Property svn:keywords set to
Id
|
File size:
977 bytes
|
Line | |
---|
1 | ##parameters=psm=None |
---|
2 | # $Id: temporary_view_all.py 290 2006-07-10 20:04:08Z joachim $ |
---|
3 | |
---|
4 | """ |
---|
5 | """ |
---|
6 | |
---|
7 | return context.temporary_view_all_form(psm=psm) |
---|
8 | ##member = context.portal_membership.getAuthenticatedMember() |
---|
9 | ##uname = str(member) |
---|
10 | ##roles = member.getRoles() |
---|
11 | ##cat = context.portal_catalog |
---|
12 | ##request = context.REQUEST |
---|
13 | ##url0 = request.get('URL0') |
---|
14 | ##if context.portal_membership.isAnonymousUser(): |
---|
15 | ## if not url0.endswith('chat'): |
---|
16 | ## return context.students.student_view_all_form(psm=psm) |
---|
17 | ## return context.Chat() |
---|
18 | ##else: |
---|
19 | ## if url0.find(uname) > 0 or 'DepartmentManager' in roles or 'Manager' in roles: |
---|
20 | ## return context.temporary_view_all_form(psm=psm) |
---|
21 | ## elif 'Student' in roles and 'StudentManager' not in roles: |
---|
22 | ## res = cat(pathindex="/portal/sections/students/%s" % uname) |
---|
23 | ## for r in res: |
---|
24 | ## if r.getPath().endswith("students/%s" % uname): |
---|
25 | ## return r.getObject().student_view_student_form(psm=psm) |
---|
26 | ## return context.students.student_view_all_form(psm=psm) |
---|
Note: See
TracBrowser for help on using the repository browser.