Skip to content

Commit

Permalink
disabled adapter only during migration
Browse files Browse the repository at this point in the history
  • Loading branch information
sauzher committed Oct 11, 2024
1 parent e7a40e1 commit 093c93c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/migrateAT.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@

setSite(portal)

def disable_resolve_uid_captioning_adapter(portal):
from zope.component import getGlobalSiteManager
from plone.outputfilters.interfaces import IFilter

gsm = getGlobalSiteManager()
gsm.unregisterAdapter(factory="isaw.theme.resolveuid_and_caption.WCAGResolveUIDAndCaptionFilter",
required=(None, None),
provided=IFilter,
name="resolveuid_and_caption")


def fix_registry(context=None):
"""Remove registry-records where the interface is no longer there."""
Expand Down Expand Up @@ -540,6 +550,8 @@ def fix_timezones(portal):
toggleContentRules(status='disabled')
toggleLinkIntegrity(status='disabled')

disable_resolve_uid_captioning_adapter(portal)

patch_transform()
fix_timezones(portal)

Expand Down

0 comments on commit 093c93c

Please # to comment.