13 lines
359 B
Python
13 lines
359 B
Python
import tornado
|
|
from tornado.gen import Return
|
|
from wtforms_tornado import Form
|
|
|
|
|
|
class ValidatedForm(Form):
|
|
|
|
@tornado.gen.coroutine
|
|
def perform_extra_validation(self, *args, **kwargs):
|
|
"""A coroutine that performs any applicable extra validation. Must
|
|
return True if the form is valid or False otherwise."""
|
|
raise Return(True)
|