From 3035d86c63c3de6d8974f9c37d1d1a5cbf8a6fe7 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Mon, 13 May 2024 17:52:15 +0200 Subject: [PATCH] refactor to add restapi endpoints --- src/rer/newsletter/content/message.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/rer/newsletter/content/message.py b/src/rer/newsletter/content/message.py index 298b1296..76744438 100644 --- a/src/rer/newsletter/content/message.py +++ b/src/rer/newsletter/content/message.py @@ -3,18 +3,18 @@ from plone import api from plone.app.contenttypes.content import Folder from plone.app.layout.viewlets.content import ContentHistoryView -from rer.newsletter import _ from rer.newsletter.adapter.sender import IChannelSender from rer.newsletter.content.channel import Channel from rer.newsletter.interfaces import IMessage from rer.newsletter.utils import compose_sender from rer.newsletter.utils import get_site_title -from rer.newsletter.utils import OK from zope.component import getMultiAdapter from zope.component import queryUtility from zope.interface import implementer +import re + try: from collective.taskqueue.interfaces import ITaskQueue from rer.newsletter.queue.handler import QUEUE_NAME @@ -28,9 +28,6 @@ KEY = "rer.newsletter.message.details" -import re - - @implementer(IMessage) class Message(Folder):