Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
style.routed(Form.onValidationFailureFor(postHandler),
[tags.h1('invalid form'),
tags.div(slot('the-invalid-form'))]),
renderer=Form.rendererFor(postHandler, action=u"/?post=yes"),
)
def validationFailed(values, renderer):
renderer.prevalidationValues = values.prevalidationValues
renderer.validationErrors = values.validationErrors
return {'the-invalid-form': renderer}