From 093c93c89165694a3443f07f981e9a42e02db35d Mon Sep 17 00:00:00 2001 From: alessandro ceglie Date: Fri, 11 Oct 2024 19:55:42 +0200 Subject: [PATCH] disabled adapter only during migration --- scripts/migrateAT.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/migrateAT.py b/scripts/migrateAT.py index ec28d202..ea7e109d 100644 --- a/scripts/migrateAT.py +++ b/scripts/migrateAT.py @@ -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.""" @@ -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)