source: WAeUP_SRP/trunk/skins/waeup_default/.cpsskins_theme.py @ 783

Last change on this file since 783 was 538, checked in by joachim, 18 years ago

fixed typo WAeUP Image Widget
introduced academicx_index and modified all types

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.