Jan Koprowski pisze:
> Hi Everyone !
>
> I downgrade FormEncode from 1.2.2 to 1.2.1 and all is right. In
> version 1.2.1 parameter force_defaults doesn't exists and work fine
> with secure_form. I also send ticket to bugtrack
> https://sourceforge.net/tracker/?func=detail&aid=2795224&group_id=91231&atid=596416
> I hope this help someone.
>
> Greetings from Poland !
> --
> Jan Koprowski
> >
>
>
>
I think the problem is in @authenticate_form.
This function/decorator remove request.POST['_authentication_token'].
Htmlfill doesn't have this value and set empty string.
Ex:
html = render('/my_template.mako') # <- _authentication_token is set
return htmlfill.render(html, defaults=request.POST, errors=errors,
force_defaults=False) # <- without force_defaults=False
_authentication_token will be cleared.
Best Regards,
Tomasz Narloch
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---