Skip to content

Commit

Permalink
adapts -> adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens authored and gforcada committed Apr 11, 2023
1 parent f9af79b commit 61363a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plone/protect/auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -80,14 +80,14 @@


@implementer(ITransform)
@adapter(Interface, Interface) # any context, any request
class ProtectTransform:
"""
XXX Need to be extremely careful with everything we do in here
since an error here would mean the transform is skipped
and no CSRF protection...
"""

adapts(Interface, Interface) # any context, any request

# should be last lxml related transform
order = 9000
Expand Down

0 comments on commit 61363a0

Please sign in to comment.