source: WAeUP_SRP/trunk/skins/waeup_design/get_waeup_skin.py @ 1774

Last change on this file since 1774 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
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.