Example #1
0
def hmmm():
    report_event('post_request', request.form.to_dict())
    if PROJECT_INFO['debug']:
        print("************", file=stderr)
        print(request, file=stderr)
        print("************", file=stderr)

    return flipper.flip(request.form.to_dict())
Example #2
0
def home():
    """Render app homepage template."""
    if request.method == 'POST':
        report_event('post_request', request.form.to_dict())
        return flipper.flip(request.form.to_dict())

    else:
        return render_template('index.html',
                               project=PROJECT_INFO,
                               allowed_types=ALLOWED_TYPES,
                               allowed_commands=ALLOWED_COMMANDS)
Example #3
0
def home():
    """Render app homepage template."""
    if request.method == 'POST':
        report_event('post_request', request.form.to_dict())
        return flipper.flip(request.form.to_dict())

    else:
        return render_template(
            'index.html',
            project=PROJECT_INFO,
            allowed_types=ALLOWED_TYPES,
            allowed_commands=ALLOWED_COMMANDS
        )
Example #4
0
def home():
    ''' Render app homepage template
    '''

    if request.method == 'POST':
        return flipper.flip(request.form)

    else:
        return render_template(
            'index.html',
            project=PROJECT_INFO,
            allowed_types=ALLOWED_TYPES,
            allowed_commands=ALLOWED_COMMANDS
        )