librelist archives

« back to archive

ANN: Flask-WTF released

ANN: Flask-WTF released

From:
Dan Jacob
Date:
2010-06-29 @ 07:52
Flask-WTF has now been released on PyPi. Documentation is here:
http://packages.python.org/Flask-WTF/

This extension provides easier integration with WTForms, as it is
integrated with Flask thread locals, so for example instead of:

form = MyForm(request.form)
if request.method == "POST" and form.validate():

you can just do:

form = MyForm()
if form.validate_on_submit():

Flask-WTF also includes in-built CSRF validation and a Recaptcha
field. See the docs for details.

Thanks to those on this list who provided feedback and assistance.

I am hoping to release Flask-Testing later this week, however still
finalizing Twill integration.

Re: [flask] ANN: Flask-WTF released

From:
Armin Ronacher
Date:
2010-06-29 @ 13:57
Hi,

On 6/29/10 9:52 AM, Dan Jacob wrote:
> Flask-WTF also includes in-built CSRF validation and a Recaptcha
> field. See the docs for details.
I think that alone is a good reason why the WTForms example should 
mention (before everything else) that there is a flask extension for it. 
  Care to provide a patch that explains the project a bit in the docs?


Regards,
Armin

Re: [flask] ANN: Flask-WTF released

From:
Dan Jacob
Date:
2010-06-29 @ 13:59
Sure. Maybe the SQLAlchemy section should mention the same ?

On 29 June 2010 14:57, Armin Ronacher <armin.ronacher@active-4.com> wrote:
> Hi,
>
> On 6/29/10 9:52 AM, Dan Jacob wrote:
>> Flask-WTF also includes in-built CSRF validation and a Recaptcha
>> field. See the docs for details.
> I think that alone is a good reason why the WTForms example should
> mention (before everything else) that there is a flask extension for it.
>  Care to provide a patch that explains the project a bit in the docs?
>
>
> Regards,
> Armin
>

Re: [flask] ANN: Flask-WTF released

From:
Armin Ronacher
Date:
2010-06-29 @ 14:02
Ho,

On 6/29/10 3:59 PM, Dan Jacob wrote:
> Sure. Maybe the SQLAlchemy section should mention the same ?
Indeed.  Should add that there.


Regards,
Armin

Re: [flask] ANN: Flask-WTF released

From:
何威威
Date:
2010-06-29 @ 17:33
Hi, import recaptcha ImportError: No module named recaptcha. Should add
recaptcha in its install_requires?

Re: [flask] ANN: Flask-WTF released

From:
Dan Jacob
Date:
2010-06-30 @ 01:55
Should be fixed in latest install and trunk.

On 29 June 2010 18:33, 何威威 <heww0205@gmail.com> wrote:
> Hi, import recaptcha ImportError: No module named recaptcha. Should add
> recaptcha in its install_requires?
>