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

2011-01-27 Thread Chris McDonough
On Thu, 2011-01-27 at 11:47 -0800, Seth wrote: I've bumped into an issue with using mongoengine and pyramid when mongoengine needs to authenticate to mongodb. My app can't connect to the database when using the paster server, although all the tests run fine. After a little googling, I

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

2011-01-27 Thread Seth
Thanks Chris, it works fine in a NewRequest event. This does bring up a minor side-question about events though: Is it better for there to be only one event call per event type, or does it matter if there are multiple? For example, in my __init__.py I'm using:

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

2011-01-27 Thread Chris McDonough
On Thu, 2011-01-27 at 12:17 -0800, Seth wrote: Thanks Chris, it works fine in a NewRequest event. This does bring up a minor side-question about events though: Is it better for there to be only one event call per event type, or does it matter if there are multiple? For example, in

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. For