Re: beaker configuration

2011-11-21 Thread Jason
I had already started using beaker 1.6 and it seem to work fine as long as I included a key_length key for each region definition: cache.short_term.expire = 60 cache.short_term.key_length = 256 -- You received this message because you are subscribed to the Google Groups pylons-discuss group.

Re: cleaning up after a request, always?

2011-11-21 Thread Wyatt Baldwin
How come you guys aren't using ZopeTransactionExtension for this , i.e. http://docs.pylonsproject.org/projects/pyramid/en/1.2-branch/tutorials/wiki2/basiclayout.html#content-models-with-models-py? My understanding is that session scope should be entirely handled in that case. I'm

Re: cleaning up after a request, always?

2011-11-21 Thread Chris McDonough
On Mon, 2011-11-21 at 07:51 -0800, Wyatt Baldwin wrote: How come you guys aren't using ZopeTransactionExtension for this , i.e. http://docs.pylonsproject.org/projects/pyramid/en/1.2-branch/tutorials/wiki2/basiclayout.html#content-models-with-models-py ? My

Re: cleaning up after a request, always?

2011-11-21 Thread Iain Duncan
On Mon, Nov 21, 2011 at 7:55 AM, Chris McDonough chr...@plope.com wrote: On Mon, 2011-11-21 at 07:51 -0800, Wyatt Baldwin wrote: How come you guys aren't using ZopeTransactionExtension for this , i.e.

Re: Form field processing

2011-11-21 Thread Iain Duncan
fwiw, we use formencode heavily. The facilities for encoding and decoding nested form variable names are really really well designed. iain On Mon, Nov 14, 2011 at 11:47 PM, Chris McDonough chr...@plope.com wrote: On Mon, 2011-11-14 at 23:18 -0800, uday wrote: Thanks for the suggestion. Is

Re: cleaning up after a request, always?

2011-11-21 Thread Michael Merickel
The biggest argument I have for transaction management is a product of how views interact with the Pyramid rendering system. Templates are rendered *after* you have returned from your view unless you explicitly call render() or render_to_response(). If you call commit() in your view, that data is

Re: cleaning up after a request, always?

2011-11-21 Thread Michael Bayer
On Nov 21, 2011, at 2:09 PM, Michael Merickel wrote: The biggest argument I have for transaction management is a product of how views interact with the Pyramid rendering system. Templates are rendered *after* you have returned from your view unless you explicitly call render() or

Serving Images Dynamically

2011-11-21 Thread Vincent Catalano
I'm trying to figure out the best way to serve images dynamically in Pylons. Right now, I'm uploading images to a folder in /public. However, I want to be able to provide permissions to images as well as store them in a different manner (e.g. in a database). What would be the best way to handle

Re: Serving Images Dynamically

2011-11-21 Thread John Anderson
On Mon, Nov 21, 2011 at 2:48 PM, Vincent Catalano vinc...@vincentcatalano.com wrote: I'm trying to figure out the best way to serve images dynamically in Pylons. Right now, I'm uploading images to a folder in /public. However, I want to be able to provide permissions to images as well as

Re: Serving Images Dynamically

2011-11-21 Thread Michael Merickel
John, he's using Pylons. -- Michael -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to

Re: Serving Images Dynamically

2011-11-21 Thread Gael Pasgrimaud
This also work with Pylons. Except for the decorator. You can replace it with a custom one or by repoze.what But the best way is to use a X-Sendfile (or similar) header: http://www.yiiframework.com/wiki/129/x-sendfile-serve-large-static-files-efficiently-from-web-applications/ (It's about PHP

Re: Serving Images Dynamically

2011-11-21 Thread Vincent Catalano
Thanks! On Mon, Nov 21, 2011 at 2:28 PM, Gael Pasgrimaud g...@gawel.org wrote: This also work with Pylons. Except for the decorator. You can replace it with a custom one or by repoze.what But the best way is to use a X-Sendfile (or similar) header: