1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-25 23:21:41 +03:00

removed nonsense comment copied from "sample" code used to create notifier

This commit is contained in:
Adolfo Gómez García 2022-06-24 16:53:59 +02:00
parent b99a8de8c6
commit 2a25a8f70a

View File

@ -31,7 +31,8 @@
.. moduleauthor:: Adolfo Gómez, dkmaster at dkmon dot com .. moduleauthor:: Adolfo Gómez, dkmaster at dkmon dot com
""" """
import logging import logging
import smtplib, ssl import smtplib
import ssl
from email.mime.text import MIMEText from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart from email.mime.multipart import MIMEMultipart
import typing import typing
@ -64,15 +65,6 @@ class EmailNotifier(messaging.Notifier):
# : mark it as _ (using gettext_noop) # : mark it as _ (using gettext_noop)
iconFile = 'email.png' iconFile = 'email.png'
# now comes the form fields
# There is always two fields that are requested to the admin, that are:
# Service Name, that is a name that the admin uses to name this provider
# Description, that is a short description that the admin gives to this provider
# Now we are going to add a few fields that we need to use this provider
# Remember that these are "dummy" fields, that in fact are not required
# but used for sample purposes
# If we don't indicate an order, the output order of fields will be
# "random"
hostname = gui.TextField( hostname = gui.TextField(
length=128, length=128,
label=_('SMTP Host'), label=_('SMTP Host'),