Skip to content

Commit

Permalink
refactor to add restapi endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed May 13, 2024
1 parent 1e76986 commit 7157c4e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
4 changes: 0 additions & 4 deletions src/rer/newsletter/browser/message/messageviewlet.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# -*- coding: utf-8 -*-
from Acquisition import aq_chain
from plone import api
from plone.app.layout.viewlets import ViewletBase
from plone.app.layout.viewlets.content import ContentHistoryView
from rer.newsletter.content.channel import Channel


class MessageManagerViewlet(ViewletBase):
Expand Down
5 changes: 0 additions & 5 deletions src/rer/newsletter/browser/message/sendingtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@
from plone.z3cform.layout import wrap_form
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from rer.newsletter import _
from rer.newsletter.content.channel import Channel
from rer.newsletter.utils import compose_sender
from rer.newsletter.utils import get_site_title
from smtplib import SMTPRecipientsRefused
from z3c.form import button
from z3c.form import field
from z3c.form import form
from zope.interface import Interface

import re


class IMessageSendingTest(Interface):
"""define field for sending test of message"""
Expand Down
15 changes: 0 additions & 15 deletions src/rer/newsletter/browser/message/sendmessageview.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,12 @@
from plone.z3cform.layout import wrap_form
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from rer.newsletter import _
from rer.newsletter.adapter.sender import IChannelSender
from rer.newsletter.adapter.subscriptions import IChannelSubscriptions
from rer.newsletter.content.channel import Channel
from rer.newsletter.utils import OK
from z3c.form import button
from z3c.form import form
from zope.component import getMultiAdapter
from zope.component import queryUtility


try:
from collective.taskqueue.interfaces import ITaskQueue
from rer.newsletter.queue.handler import QUEUE_NAME
from rer.newsletter.queue.interfaces import IMessageQueue

HAS_TASKQUEUE = True
except ImportError:
HAS_TASKQUEUE = False


KEY = "rer.newsletter.message.details"


class SendMessageView(form.Form):
Expand Down

0 comments on commit 7157c4e

Please sign in to comment.