Skip to content

Commit

Permalink
change adapter registration to IDexterityContent
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Jan 19, 2024
1 parent 35d0b05 commit e23950d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions news/136.bugfix
@@ -0,0 +1,3 @@
Change PurgePath adapter registration to IDexterityContent
[erral]

4 changes: 2 additions & 2 deletions plone/app/caching/purge.py
Expand Up @@ -3,7 +3,7 @@
from plone.app.caching.utils import isPurged
from plone.cachepurging.interfaces import IPurgePathRewriter
from plone.dexterity.content import get_assignable
from plone.dexterity.interfaces import IDexteritySchema
from plone.dexterity.interfaces import IDexterityContent
from plone.dexterity.schema import SCHEMA_CACHE
from plone.memoize.instance import memoize
from plone.namedfile.interfaces import INamedBlobFileField
Expand Down Expand Up @@ -172,7 +172,7 @@ def _getRoot(self):


@implementer(IPurgePaths)
@adapter(IDexteritySchema)
@adapter(IDexterityContent)
class ScalesPurgePaths:
"""Paths to purge for Dexterity object fields"""

Expand Down

0 comments on commit e23950d

Please sign in to comment.