source: WAeUP_SRP/branches/regebro-noskins/skins/waeup_design/get_waeup_skin.py @ 15554

Last change on this file since 15554 was 1692, checked in by Henrik Bettermann, 18 years ago

2nd clean-up

  • Property svn:keywords set to Id
File size: 344 bytes
Line 
1# Return the right theme in context:
2
3request = container.REQUEST
4RESPONSE =  request.RESPONSE
5
6# Return a string identifying this script.
7mtool = context.portal_membership
8member = mtool.getAuthenticatedMember()
9roles = member.getRoles()
10if 'Student' in roles or mtool.isAnonymousUser():
11     return 'WAeUP_Student'
12return 'WAeUP_Backoffice'
13
Note: See TracBrowser for help on using the repository browser.