tessl install tessl/pypi-flask-wtf@1.2.0Form rendering, validation, and CSRF protection for Flask with WTForms.
Agent Success
Agent success rate when using this tile
72%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.91x
Baseline
Agent success rate without this tile
79%
{
"context": "This criteria evaluates how well the engineer uses Flask-WTF's FileAllowed validator with Flask-Uploads UploadSet objects to validate file uploads in a Flask form. The focus is on proper integration between Flask-WTF and Flask-Uploads for type-based file validation.",
"type": "weighted_checklist",
"checklist": [
{
"name": "UploadSet creation",
"description": "Creates UploadSet objects using flask_uploads.UploadSet to define allowed file extensions for images and documents",
"max_score": 25
},
{
"name": "FileField usage",
"description": "Uses flask_wtf.file.FileField (or MultipleFileField) to create file upload fields in the form",
"max_score": 15
},
{
"name": "FileAllowed validator",
"description": "Uses flask_wtf.file.FileAllowed validator to validate file uploads against the UploadSet objects",
"max_score": 30
},
{
"name": "FlaskForm integration",
"description": "Properly extends flask_wtf.FlaskForm to create the upload form with automatic CSRF protection",
"max_score": 15
},
{
"name": "Form validation",
"description": "Uses form.validate_on_submit() or form.validate() to trigger validation of uploaded files",
"max_score": 15
}
]
}