source: WAeUP_SRP/branches/uli/skins/waeup_default/.cpsskins_theme.py @ 1653

Last change on this file since 1653 was 805, checked in by joachim, 18 years ago

propset Id

  • 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 'Manager' in roles or 'SectionManager' in roles:
11    return 'WAeUP_Backoffice'
12return 'WAeUP_Student'
Note: See TracBrowser for help on using the repository browser.