Strange beaker 1.1 error

2008-12-15 Thread alecf
We are unfortunately still on Python 2.4, but we have brought hashlib in (from http://pypi.python.org/pypi/hashlib ) because we needed it elsewhere in our project. We are seeing some strange exceptions when using paste.httpexceptions - I'm theorizing that beaker's hashlib / sha1 / md5 usage is

Setting the content type in Pylons 0.9.6

2007-09-26 Thread alecf
I'm trying to render some Atom feeds with Pylons - I've got a genshi template that more or less renders the atom feed, but I need to return it as application/atom+xml For the life of me I can't figure out how the new global response object works - setting content_type has no effect.. my

Re: Setting the content type in Pylons 0.9.6

2007-09-26 Thread alecf
much behind-the scenes? Alec On Sep 26, 3:40 pm, James Gardner [EMAIL PROTECTED] wrote: Hi Alec, You need: response.headers['Content-type'] = application/atom+xml return render(genshi-xml, atom-feed) James alecf wrote: I'm trying to render some Atom feeds with Pylons - I've got

Re: mod_python configuration?

2007-05-29 Thread alecf
Wow.. I had no idea Paste could bridge the modpython divide but thanks to your post, I just converted my own stuff over from modpython_gateway.py, which is looks like paste.modpython derives from... I'm in the process of making my app more paste-friendly so I'm not quite ready to add the .ini

use of globals, threadless, and requests

2007-05-29 Thread alecf
I'm interested in serving up my pylons app under Stackless Python - Stackless is more or less single-threaded so the model is somewhat like Twisted but without all the deferreds. Instead of threads, there are tasklets which participate in kind of a cooperative parallelism - as soon as one tasklet