TODO¶
Provide an example of using a newrequest subscriber to mutate the request, providing additional user data from a database based on the current authenticated userid.
Provide an example of adding a database connection to
settings
in __init__ and using it from a view.Provide an example of a catchall 500 error view.
Redirecting to a URL with Parameters:
1[22:04] <AGreatJewel> How do I redirect to a url and set some GET params?
2some thing like return HTTPFound(location="whatever", params={ params here })
3[22:05] <mcdonc> return HTTPFound(location="whatever?a=1&b=2")
4[22:06] <AGreatJewel> ok. and I would need to urlencode the entire string?
5[22:06] <AGreatJewel> or is that handled automatically
6[22:07] <mcdonc> its a url
7[22:07] <mcdonc> like you'd type into the browser
Add an example of using a cascade to serve static assets from the root.
Explore static file return from handler action using wsgiapp2 + fileapp.
https://dannynavarro.net/2011/01/14/async-web-apps-with-pyramid/
https://groups.google.com/forum/#!msg/pylons-devel/0QxHTgeswrw/yTWxlDU1WKsJ (pyramid_jinja2 i18n), also https://github.com/Pylons/pyramid_jinja2/pull/14
Simple asynchronous task queue: https://dannynavarro.net/2011/01/23/async-pyramid-example-done-right/
Installing Pyramid on Red Hat Enterprise Linux 6 (John Fulton).
Chameleon main template injected via BeforeRender.
Hybrid authorization: https://github.com/mmerickel/pyramid_auth_demo
http://whippleit.blogspot.com/2011/04/pyramid-on-google-app-engine-take-1-for.html
Custom events: https://dannynavarro.net/2011/06/12/using-custom-events-in-pyramid/
TicTacToe and Long Polling With Pyramid: https://michael.merickel.org/2011/6/21/tictactoe-and-long-polling-with-pyramid/
Jim Penny's rolodex tutorial: http://jpenny.im/
Thorsten Lockert's formhelpers/Pyramid example: https://github.com/tholo/formhelpers2
The Python Ecosystem, an Introduction: http://mirnazim.org/writings/python-ecosystem-introduction/
Outgrowing Pyramid Handlers: https://michael.merickel.org/2011/8/23/outgrowing-pyramid-handlers/
Incorporate Custom Configuration (Google Analytics) into a Pyramid Application: https://russell.ballestrini.net/how-to-incorporate-custom-configuration-in-a-pyramid-application/
Cookbook docs reorg
Move tutorials/overviews to tutorial project and replace with links