Re: comments.py change request.

Ryan Barrett <pyblosxom-6sb6M7qyT/[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel,gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On Mon, 26 Feb 2007, Blake Winton wrote:

> She entered a comment, and then hit refresh on the page, and the same
> comment was entered again.

hi blake! yeah, that's true. post-redirect-get is a great solution, and we 
could definitely implement it in comments.py.

having said that, i'm not sure how high a priority it would be. all modern 
browsers warn you loudly when you refresh a page rendered from a POST. you 
have to click "OK" before the browser will re-send the POST. many e-commerce 
sites depend on this to prevent duplicate transactions, along with their own
(inelegant) countermeasures.

also, ajax commenting (in contrib pack 1.3.3) prevents this. refreshing 
immediately after posting a comment doesn't cause a duplicate comment.

-Ryan

--
http://snarfed.org/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.