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

Last change on this file since 1685 was 1685, checked in by joachim, 17 years ago

first step to implement the WAeUP_Themes
it works like this:
there are theme-directories under waeup_design
WAeUP_Student and WAeUP_Backoffice. All theme-dependent stylesheets go there.

for each theme-dependent portlet there is a macro in theme.pt in the themes
directory.

The main_template.pt is in waeup_design and calls the macros from the themes
directory.

The student-theme looks quite similar to the original, but the
backoffice-theme is not usable.

For the "slips" there is a slip_template. To display the slips correctly all
slip-pts have to be modified to uses this template.


  • 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.