Last change
on this file since 2106 was
1737,
checked in by Henrik Bettermann, 18 years ago
|
merging with CPSSkinsless branch
In ZMI:
- delete all portlets in .cps_portlets
- delete all portlets in portal_cpsportlets
- import Portlet Tool, Skins Tool and Themes Tool
- optionally: - delete all themes in portal_themes and delete all method themes in portal_themes
|
File size:
344 bytes
|
Rev | Line | |
---|
[1737] | 1 | # Return the right theme in context: |
---|
| 2 | |
---|
| 3 | request = container.REQUEST |
---|
| 4 | RESPONSE = request.RESPONSE |
---|
| 5 | |
---|
| 6 | # Return a string identifying this script. |
---|
| 7 | mtool = context.portal_membership |
---|
| 8 | member = mtool.getAuthenticatedMember() |
---|
| 9 | roles = member.getRoles() |
---|
| 10 | if 'Student' in roles or mtool.isAnonymousUser(): |
---|
| 11 | return 'WAeUP_Student' |
---|
| 12 | return 'WAeUP_Backoffice' |
---|
| 13 | |
---|
Note: See
TracBrowser for help on using the repository browser.