diff --git a/plone/protect/auto.py b/plone/protect/auto.py index 6fe425c..65081f4 100644 --- a/plone/protect/auto.py +++ b/plone/protect/auto.py @@ -20,7 +20,7 @@ from urllib.parse import urlencode from urllib.parse import urlparse from zExceptions import Forbidden -from zope.component import adapts +from zope.component import adapter from zope.component import ComponentLookupError from zope.component import getUtility from zope.interface import implementer @@ -80,6 +80,7 @@ @implementer(ITransform) +@adapter(Interface, Interface) # any context, any request class ProtectTransform: """ XXX Need to be extremely careful with everything we do in here @@ -87,7 +88,6 @@ class ProtectTransform: and no CSRF protection... """ - adapts(Interface, Interface) # any context, any request # should be last lxml related transform order = 9000