def __init__(self, app, dbservice): self.dbservice = dbservice self.sched = None self.url_check = URLCheck() notificator_email = app.config['NOTIFICATOR_EMAIL'] notificator_user = app.config['NOTIFICATOR_USER'] notificator_password = app.config['NOTIFICATOR_PASSWORD'] notificator_mail_server = app.config['NOTIFICATOR_MAIL_SERVER'] self.notificator_email_to = app.config['NOTIFICATOR_EMAIL_TO'] self.mail_sender = MailSender(notificator_email, notificator_user, notificator_password, notificator_mail_server)