BillSeitz/webpy-blog-plus — pull request #2 by jmacgowan (2012-06-01 00:52:27+00:00)
Title: Fixed editing/creating multiple entries; moved csrf_token; added commenting

The biggest thing here is taking out the session.pop('csrf_token') so that our token stays valid until the session expires. You can edit or create entries 10 at a time if you want and it will work.

I moved session['csrf_token'] = csrf_token() to be called at template render time to adhere to the DRY principle (and it's probably an overall better way anyway)

I added some fluffy comments and to-dos for what I'd like to see.

I really like the direction you're heading with this demo-app