Re: What's the best way to optimize database connections in Pyramid?

2011-03-14 Thread Seth
mode) for the hosting so true static routes aren't being handled by Pyramid, but cycling a new dbconn for every request is still not the right way to do it in my book. Seth -- You received this message because you are subscribed to the Google Groups pylons-devel group. To post to this group

What's the best way to optimize database connections in Pyramid?

2011-03-13 Thread Seth
object on the NewRequest event object? Thanks, Seth -- You received this message because you are subscribed to the Google Groups pylons-devel group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr

Setting cookies in Pyramid for @action()s or HTTPFound redirects?

2011-03-10 Thread Seth
manually, or am I missing something here? Thanks, Seth -- You received this message because you are subscribed to the Google Groups pylons-devel group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr

Re: Setting cookies in Pyramid for @action()s or HTTPFound redirects?

2011-03-10 Thread Seth
Currently I'm using the default cookie/session factories, but I'm looking to actually set cookies that last longer than the session so the request.session solution doesn't apply (unless I'm missing something there--I don't think it can be given a max_age). The callback method you suggested

Re: Suggestions for running view code from a shell/cron?

2011-02-09 Thread Seth
Thanks for the suggestions. I actually can accomplish what I'd like to do using the pyramid.testing DummyRequest object without having to dive all the way into WebTest. As long as I'm not hearing any warnings against that here I think I'll move forward with that. Seth -- You received

Re: Suggestions for running view code from a shell/cron?

2011-02-09 Thread Seth
worked well together. Perhaps I will give it another go and be more patient this time. Thanks again, Seth -- You received this message because you are subscribed to the Google Groups pylons-devel group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from

Re: Fixing mongo auth issues in Pyramid: Middleware or Events?

2011-01-27 Thread Seth
(add_db_connection, NewRequest) config.add_subscriber(add_identity, NewRequest) config.add_subscriber(add_renderer_globals, BeforeRender) Is Pyramid more efficient if I combine both those NewRequest subscribers into one subscriber call, or does it matter? Seth -- You received this message because you

Re: Fixing mongo auth issues in Pyramid: Middleware or Events?

2011-01-27 Thread Seth
Good to know. Thanks again! Seth -- You received this message because you are subscribed to the Google Groups pylons-devel group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com

Re: Pyramid 1.0b2 released

2011-01-25 Thread Seth
Chris, This is such exciting news! Thanks for all your hard work (and everyone else who has contributed). Seth -- You received this message because you are subscribed to the Google Groups pylons-devel group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe

Re: Pyramid 1.0a8 released

2010-12-30 Thread Seth
Thanks for all the input and I suppose Marius' answer is the most straightforward solution. Perhaps I was expecting something a little more like Mike's category style implementation, but I can see how that could become too much complexity for too little value. With regards to the peek_flash

Re: Pyramid 1.0a8 released

2010-12-27 Thread Seth
the config.testing_securitypolicy method (has_permission reports that No authentication policy in use.). Was this tweaked for this release (I'm not seeing anything in the changelogs)? - Seth -- You received this message because you are subscribed to the Google Groups pylons-devel group