Skip to content

Commit

Permalink
Do not apply the theme transform over every request. Closes gh-207
Browse files Browse the repository at this point in the history
  • Loading branch information
frapell committed Apr 15, 2022
1 parent d2fe5c1 commit 5685136
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit 5685136

Please sign in to comment.