Back to index

plone3  3.1.7
Functions
plone.theme.layer Namespace Reference

Functions

def mark_layer

Function Documentation

def plone.theme.layer.mark_layer (   site,
  event 
)
Mark the request with a layer corresponding to the current skin,
as set in the portal_skins tool.

Definition at line 9 of file layer.py.

00009 
00010 def mark_layer(site, event):
00011     """Mark the request with a layer corresponding to the current skin,
00012     as set in the portal_skins tool.
00013     """
00014     portal_skins = getToolByName(site, 'portal_skins', None)
00015     if portal_skins is not None:
00016         skin_name = site.getCurrentSkinName()
00017         skin = queryUtility(IBrowserSkinType, name=skin_name)
00018         if skin is not None:
            applySkin(event.request, skin)

Here is the call graph for this function: