Пример #1
0
def version():
    """
    GPO section for System Version
    :return dict
    """
    return render_template(
        'version.html',
        pc=app.get_pc_info(),
        results=app.get_gpo_results(),
    )
Пример #2
0
def registry():
    """
    GPO section for System Registry
    :return dict
    """
    results = {}

    return render_template(
        'registry.html',
        pc=app.get_pc_info(),
        results=app.get_gpo_results(),
    )
Пример #3
0
def events():
    """
    GPO section for System Events
    :return dict
    """
    results = {}

    return render_template(
        'events.html',
        pc=app.get_pc_info(),
        results=app.get_gpo_results(),
    )
Пример #4
0
def user():
    """
    GPO section for User Rights
    "return dict
    """
    results = {}

    return render_template(
        'user.html',
        pc=app.get_pc_info(),
        results=app.get_gpo_results(),
    )
Пример #5
0
def email_help():
    """
    Create and send the email support team
    :return Flask-Mail sender
    """
    pc = app.get_pc_info()
    subject = 'Bellcurve Technology - GPO HIPAA Complaince Audit Report for ' + pc[
        'pc_name']
    receiver = '*****@*****.**'
    msg = Message(subject=subject,
                  sender=config.MAIL_DEFAULT_SENDER,
                  recipients=[receiver])
    msg.body = 'This email contains a PDF report.'
    #pdf = create_pdf(render_template('email_help.html', pc=app.get_pc_info()))
    #msg.attach('report.pdf', 'application/pdf', pdf.getvalue())
    mail.send(msg)
    flash('The GPO audit report was successfully sent to {}.'.format(receiver),
          'info')
    return redirect(url_for('index'))
Пример #6
0
def email():
    """
    Create and send email from the server app
    :return none
    """
    pc = app.get_pc_info()
    email = request.form['input_email']
    subject = 'Bellcurve - GPO HIPAA Compliance Audit Report for ' + pc[
        'pc_name']
    msg = Message(subject=subject,
                  sender=config.MAIL_DEFAULT_SENDER,
                  recipients=[email])
    msg.body = 'This email contains a PDF report.'
    #pdf = create_pdf(render_template('email.html', pc=app.get_pc_info()))
    #msg.attach('report.pdf', 'application/pdf', pdf.getvalue())
    mail.send(msg)
    flash('The GPO Audit Report was successfully sent to {}'.format(email),
          'info')
    return redirect(url_for('index'))
Пример #7
0
def index():
    """
    PyWebView Application Entry Point.
    :return template   
    """
    return render_template("index.html", pc=app.get_pc_info())