From c13e0c37af6ef33d1ef878a464100469a990f5ed Mon Sep 17 00:00:00 2001 From: drfho Date: Wed, 11 Oct 2023 10:34:04 +0200 Subject: [PATCH] reanimated request shortcut is_zmi --- Products/zms/ZMSItem.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Products/zms/ZMSItem.py b/Products/zms/ZMSItem.py index 956afcc2b..27dcdf69f 100644 --- a/Products/zms/ZMSItem.py +++ b/Products/zms/ZMSItem.py @@ -127,6 +127,7 @@ def zmi_page_request(self, *args, **kwargs): RESPONSE.setHeader('Cache-Control', 'no-cache') RESPONSE.setHeader('Pragma', 'no-cache') RESPONSE.setHeader('Content-Type', 'text/html;charset=%s'%request['ZMS_CHARSET']) + request.set( 'is_zmi', True) if not request.get( 'preview'): request.set( 'preview', 'preview') langs = self.getLanguages(request)