Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
xfrs and auto-escaping documentation
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Antonio Pintus  
View profile  
 More options Aug 6 2012, 12:07 pm
From: Antonio Pintus <pin...@gmail.com>
Date: Mon, 6 Aug 2012 18:07:16 +0200
Local: Mon, Aug 6 2012 12:07 pm
Subject: xfrs and auto-escaping documentation

Hi,

in my opinion current Tornado documentation should be changed regarding xfrs sample in "overview" page.
In fact, examples refer to

If xsrf_cookies is set, the Tornado web application will set the _xsrf cookie for all users and reject all POST, PUT, and DELETE requests that do not contain a correct _xsrf value. If you turn this setting on, you need to instrument all forms that submit via POST to contain this field. You can do this with the special function xsrf_form_html(), available in all templates:

<form action="/new_message" method="post">
  {{ xsrf_form_html() }}
  <input type="text" name="message"/>
  <input type="submit" value="Post"/>
</form>

but auto-escaping now it's true by default, so examples,  should be written using {% raw xsrf_form_html() %}, shouldn't it?

Thank you,

Antonio

--

Antonio Pintus

e-mail: pin...@gmail.com
Home Page: http://www.pintux.it
Blog: http://jaranto.blogspot.com
Photography: http://www.flickr.com/photos/pintux/
Twitter: apintux

http://www.paraimpu.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
HENG  
View profile  
 More options Aug 7 2012, 11:33 am
From: HENG <ourwait...@gmail.com>
Date: Tue, 7 Aug 2012 23:33:22 +0800
Local: Tues, Aug 7 2012 11:33 am
Subject: Re: [tornado] xfrs and auto-escaping documentation

Use {% raw xsrf_form_html() %} is right ~ when autoescape=True~

2012/8/7 Antonio Pintus <pin...@gmail.com>

--
--------------------------------------------------------------------
HengZhou
---------------------------------------------------------------------
--

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aliane abdelouahab  
View profile  
 More options Aug 7 2012, 12:59 pm
From: aliane abdelouahab <alabdeloua...@gmail.com>
Date: Tue, 7 Aug 2012 09:59:03 -0700 (PDT)
Local: Tues, Aug 7 2012 12:59 pm
Subject: Re: xfrs and auto-escaping documentation
yes, it should be modified, because auto escaping is by default ON.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Darnell  
View profile  
 More options Aug 11 2012, 3:23 pm
From: Ben Darnell <b...@bendarnell.com>
Date: Sat, 11 Aug 2012 12:23:57 -0700
Local: Sat, Aug 11 2012 3:23 pm
Subject: Re: [tornado] Re: xfrs and auto-escaping documentation
Thanks, I've updated both places in the docs that still used the old form.

I used {% module %} instead of {% raw %} since xsrf_form_html is
registered as a module, and this way offers slightly less
encouragement to use {% raw %} frequently.

-Ben

On Tue, Aug 7, 2012 at 9:59 AM, aliane abdelouahab


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »