Back to index

plone3  3.1.7
Functions
plone.browserlayer.layer Namespace Reference

Functions

def mark_layer

Function Documentation

def plone.browserlayer.layer.mark_layer (   site,
  event 
)
Mark the request with all installed layers.

Definition at line 5 of file layer.py.

00005 
00006 def mark_layer(site, event):
00007     """Mark the request with all installed layers.
00008     """
00009     request = event.request
00010     layers = getAllUtilitiesRegisteredFor(ILocalBrowserLayerType)
00011     ifaces = list(layers) + list(directlyProvidedBy(request))
00012         
00013     # Since we allow multiple markers here, we can't use 
00014     # zope.publisher.browser.applySkin() since this filters out 
00015     # IBrowserSkinType interfaces, nor can we use alsoProvides(), since
00016     # this appends the interface (in which case we end up *after* the
00017     # default Plone/CMF skin)
00018 
00019     directlyProvides(request, *ifaces)
00020 

Here is the call graph for this function: