<s> from flask_wtf import Form <EOL> from wtforms . fields import StringField , TextAreaField , SubmitField <EOL> from wtforms . validators import DataRequired , Length <EOL> class PostForm ( Form ) : <EOL> title = StringField ( <EOL> u'<STR_LIT>' , <EOL> validators = [ <EOL> DataRequired ( message = u'<STR_LIT>' ) , <EOL> Length ( max = <NUM_LIT> , message = u'<STR_LIT>' ) <EOL> ] <EOL> ) <EOL> description = TextAreaField ( <EOL> u'<STR_LIT>' , <EOL> validators = [ <EOL> DataRequired ( message = u'<STR_LIT>' ) , <EOL> Length ( max = <NUM_LIT> , message = u'<STR_LIT>' ) <EOL> ] <EOL> ) <EOL> body = TextAreaField ( <EOL> u'<STR_LIT>' , <EOL> validators = [ DataRequired ( message = u'<STR_LIT>' ) ] <EOL> ) <EOL> submit = SubmitField ( u'<STR_LIT>' ) <EOL> class TagForm ( Form ) : <EOL> """<STR_LIT>""" <EOL> name = StringField ( <EOL> u'<STR_LIT>' , <EOL> validators = [ <EOL> DataRequired ( message = u'<STR_LIT>' ) , <EOL> Length ( max = <NUM_LIT:100> , message = u'<STR_LIT>' ) <EOL> ] <EOL> ) </s>
