Re: Response hangs when using SQLAlchemy

2009-03-05 Thread Matthew Zwier
Could this be something to do with the system entropy pool? If the uuid module was accessing /dev/random when no entropy was available, the read from /dev/random would block. If MySQL weren't using /dev/random, and were using /dev/urandom or something, it would never block. /dev/random may

Re: Response hangs when using SQLAlchemy

2009-03-05 Thread Matthew Zwier
The 2.5 uuid module tries to use underlying system UUID libraries, so the read from /dev/random may be in there instead of in the Python code. Don't know what 2.6 does. Hmm...that's not very helpful. I know just enough about the internals of Python to be dangerous :) MZ On Thu, Mar 5, 2009

Re: serving up generated images

2008-12-15 Thread Matthew Zwier
Hi, Using tempfile.NamedTemporaryFile specifying this tmp directory could be an improvement if the deletion works ok. If I don't explictly close the file the docs say they will be closed and therefore deleted with gc is run. Hmm...because gc can be run at any time, there's no guarantee the

Re: Beaker with database session...

2008-12-12 Thread Matthew Zwier
Glad to help! MZ On Fri, Dec 12, 2008 at 9:58 AM, Marin marin...@gmail.com wrote: It works perfectly. I just used beaker.session.type = ext:database Thx, Marin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Beaker with database session...

2008-12-06 Thread Matthew Zwier
Hi Marin, This one bit me myself. You're looking for beaker.cache.type = ext:database in the config file. If I remember correctly, Beaker creates the tables for you if they're missing. Hope that helps! Matt Z. On Sat, Dec 6, 2008 at 5:23 AM, Marin [EMAIL PROTECTED] wrote: I was trying to

Re: Quickie about absolute urls

2008-10-15 Thread Matthew Zwier
http://docs.pylonshq.com/thirdparty/routes.html#routes.util.url_for It's from the new 0.9.7 documentation (http://docs.pylonshq.com/index.html ), which is far more coherent than what's available from the Pylons wiki. Much (if not most) of it still applies to 0.9.6, though. On Wed, Oct 15, 2008

Re: Quickie about absolute urls

2008-10-14 Thread Matthew Zwier
How about adding qualified=True to the arguments for url_for()? On Tue, Oct 14, 2008 at 8:45 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a template snippet that i use to render a list or urls. I use the snippet both to display the links on a page and in an email. The email