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())
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)
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 )
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 )