librelist archives

« back to archive

ANN: Flask-WTF 0.5

ANN: Flask-WTF 0.5

From:
danjac354@gmail.com
Date:
2011-01-22 @ 16:21
I'm pleased to announce the release of Flask-WTF 0.5:
http://packages.python.org/Flask-WTF/

This release has some major additions:

1. File upload handling has been tidied up a bit, including support
for nested file fields inside lists. This was actually a 0.4 change
but worth mentioning here.

2. File validators have been added, using Flask-Uploads upload sets.
An UploadSet can prevent or allow certain file types. It is now
possible to integrate this into your form using a validator so the
file type checking can be done as part of the form validation process.

3. HTML5 support has been added by the inclusion of a number of fields
and widgets under the flaskext.wtf.html5 package. The list is not
exhaustive and additional widgets may be added to this package as the
need arises. Naturally these widgets will only work on supported
browsers - see http://diveintohtml5.org/forms.html for a good
introduction.

It was hoped to add support for HTML5 multiple file inputs, but there
appear to be some low-level issues with multiple file fields sharing
the same name. This is currently in a branch and will be added to a
later release once resolved.

Thanks again to the #pocoo crowd on IRC for help and advice.