Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not apply the theme transform over every request. #208

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions news/207.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Do not apply the theme transform over every request
[frapell]
3 changes: 2 additions & 1 deletion src/plone/app/theming/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from zope.component import adapter
from zope.interface import implementer
from zope.interface import Interface
from zope.location.interfaces import ILocation

import logging

Expand All @@ -25,7 +26,7 @@


@implementer(ITransform)
@adapter(Interface, IThemingLayer)
@adapter(ILocation, IThemingLayer)
class ThemeTransform(object):
"""Late stage in the 8000's transform chain. When plone.app.blocks is
used, we can benefit from lxml parsing having taken place already.
Expand Down