Bases: object
Vocabulary to return available layouts of a given type
Bases: zope.publisher.browser.BrowserView
Look up and render the site layout to use for the context.
Use this for a page that does not have the ILayout behavior, or a standalone page template.
The idea is that you can do:
<html data-layout=”./@@default-site-layout”>
and always get the correct site layout for the page, taking section- specific settings into account.
Bases: plone.app.blocks.resource.DefaultSiteLayout
Look up and render the site layout to use for the context.
Use this for a page that does have the ILayout behavior. It will take the pageSiteLayout property into account.
The idea is that you can do:
<html data-layout=”./@@page-site-layout”>
and always get the correct site layout for the page, taking section- and page-specific settings into account.
Bases: plone.resource.traversal.ResourceTraverser
The site layout traverser.
Allows traveral to /++sitelayout++<name> using plone.resource to fetch things stored either on the filesystem or in the ZODB.
Bases: object
A no-op transform which sets flags to stop plone.app.blocks transformations. You may register this for a particular published object or request as required. By default, it’s registered for ESI- rendered tiles when they are fetched via ESI.
Bases: object
If ESI rendering was used, render the page down to a format that allows ESI to work.
Bases: object
Turn a panel-merged page into the final composition by including tiles. Assumes the input result is an lxml tree and returns an lxml tree for later serialization.
Bases: object
Find the site layout and merge panels.
Bases: object
First stage in the 8000’s chain: parse the content to an lxml tree encapsulated in an XMLSerializer.
The subsequent steps in this package will assume their result inputs are XMLSerializer iterables, and do nothing if it is not. This also gives us the option to parse the content here, and if we decide it’s not HTML, we can avoid trying to parse it again.
Get the charset of the given response
Get the path to the site layout to use by default for the given content object
Get the path to the site layout for a page. This is generally only appropriate for the view of this page. For a generic template or view, use getDefaultSiteLayout(context) instead.
Similar to above but keeps parent tag
element.replace also replaces the tail and forgets the wrapper.text