Re: Cleaning up files generated for user session

2012-02-13 Thread Greg Slodkowicz
Do you need to save temp files at all? Are the PNGs expensive to generate in R? Can you request raw bytes from R instead of saving to file? I have a scenario that's similar to yours (not using R, though; I'm generating audio files), and I stream the bytes generated by the back end directly

Re: need your help to overhaul docs

2012-02-13 Thread Chris McDonough
On Fri, 2012-02-10 at 14:11 -0600, Joe Dallago wrote: Count me in for $25. I can give it to you at PyCon, if that is not too late. Otherwise, Paypal or something. Thanks! I have applied for a kickstarter.com project in the meantime. - C On Fri, Feb 10, 2012 at 12:36 PM, Iain Duncan

Re: need your help to overhaul docs

2012-02-13 Thread Tarek Ziadé
On 4 fév, 04:53, Chris McDonough chr...@plope.com wrote: ... So this is me asking you for money.  If I can find four other sponsors willing to contribute US $1000, I will contribute another $1000, making a total of $5000. Can you convince your company to donate US $1K to this effort?  The

Re: need your help to overhaul docs

2012-02-13 Thread artee
Hi I can contribute $50. Please add me to the list and tell us how send the money. Artur Lew -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit

Re: need your help to overhaul docs

2012-02-13 Thread Chris McDonough
On Mon, 2012-02-13 at 03:52 -0800, Tarek Ziadé wrote: On 4 fév, 04:53, Chris McDonough chr...@plope.com wrote: ... So this is me asking you for money. If I can find four other sponsors willing to contribute US $1000, I will contribute another $1000, making a total of $5000. Can you

Re: need your help to overhaul docs

2012-02-13 Thread Chris McDonough
On Mon, 2012-02-13 at 03:58 -0800, artee wrote: Hi I can contribute $50. Please add me to the list and tell us how send the money. Great, thank you! Still awaiting approval, but with any luck the money will eventually be collected via a kickstarter.com account. - C Artur Lew --

Documentation overhaul specifics

2012-02-13 Thread Chris McDonough
Thanks to the amazing generosity of everyone here, it looks like we'll be a go for a Pyramid documentation overhaul project (see the need your help to overhaul docs thread for the genesis of this idea: http://groups.google.com/group/pylons-discuss/browse_thread/thread/7bd833209369bc5f ). We

Re: Behavior Driven Development in Pyramid

2012-02-13 Thread Thomas G. Willis
I don't think there's any particular way to do BDD that pyramid endorses. You may want to take a look at lettuce (http://lettuce.it/) the docs should set you well on your way. There's also an interface to selenium so you could in theory have your lettuce scripts drive a web browser. (

Slow requests block other threads with Waitress

2012-02-13 Thread Damien Baty
Hello, While updating a small application to a more recent version of Pyramid, I switched from Paste to Waitress for development. However, it looks like Waitress cannot process two requests concurrently. The small application (attached) reproduces this. The 'slow' view calls

Re: Slow requests block other threads with Waitress

2012-02-13 Thread Chris McDonough
On Mon, 2012-02-13 at 15:00 +0100, Damien Baty wrote: Hello, While updating a small application to a more recent version of Pyramid, I switched from Paste to Waitress for development. However, it looks like Waitress cannot process two requests concurrently. The small application

Re: Slow requests block other threads with Waitress

2012-02-13 Thread Chris McDonough
On Mon, 2012-02-13 at 15:50 +0100, Damien Baty wrote: Le 13/02/12 15:45, Chris McDonough a écrit : On Mon, 2012-02-13 at 15:00 +0100, Damien Baty wrote: [...] this behaviour is due to HTTPChannel.task_lock being shared between all channels. But perhaps all this is intended. Or I am

Re: Slow requests block other threads with Waitress

2012-02-13 Thread Chris McDonough
On Mon, 2012-02-13 at 16:53 +0100, Damien Baty wrote: Le 13/02/12 15:53, Chris McDonough a écrit : On Mon, 2012-02-13 at 15:50 +0100, Damien Baty wrote: Le 13/02/12 15:45, Chris McDonough a écrit : On Mon, 2012-02-13 at 15:00 +0100, Damien Baty wrote: [...] this behaviour is due to

Re: Slow requests block other threads with Waitress

2012-02-13 Thread Chris McDonough
On Mon, 2012-02-13 at 16:53 +0100, Damien Baty wrote: I went ahead and wrote a test (https://github.com/Pylons/waitress/pull/1). There may be a cleaner way but at least it exhibits the bug (and shows that the proposed correction fixes it). I released Waitress 0.8.1 with a fix. Thanks! - C

Re: Behavior Driven Development in Pyramid

2012-02-13 Thread Theron Luhn
+1 on Lettuce Webdriver; it looks amazing. Anybody have any thoughts on the sessions? On Feb 13, 6:11 am, Thomas G. Willis tom.wil...@gmail.com wrote: I don't think there's any particular way to do BDD that pyramid endorses. You may want to take a look at lettuce (http://lettuce.it/) the docs

Re: need your help to overhaul docs

2012-02-13 Thread Iain Duncan
On Mon, Feb 13, 2012 at 3:52 AM, Tarek Ziadé ziade.ta...@gmail.com wrote: On 4 fév, 04:53, Chris McDonough chr...@plope.com wrote: ... So this is me asking you for money. If I can find four other sponsors willing to contribute US $1000, I will contribute another $1000, making a total

Re: Documentation overhaul specifics

2012-02-13 Thread Iain Duncan
On Mon, Feb 13, 2012 at 4:59 AM, Chris McDonough chr...@plope.com wrote: Thanks to the amazing generosity of everyone here, it looks like we'll be a go for a Pyramid documentation overhaul project (see the need your help to overhaul docs thread for the genesis of this idea:

Re: Documentation overhaul specifics

2012-02-13 Thread Mike Orr
On Mon, Feb 13, 2012 at 10:13 AM, Iain Duncan iainduncanli...@gmail.com wrote: On Mon, Feb 13, 2012 at 4:59 AM, Chris McDonough chr...@plope.com wrote: I think that is actually better. I've seen countless times books getting negative reviews for duplicating the online API reference, and it just

Re: Documentation overhaul specifics

2012-02-13 Thread Benjamin Sims
Sorry to be late to the party, but I would like to pledge £50 (~$80 USD). In terms of concerns/suggestions, I'd particularly like the documentation relating to authentication and authorisation to be expanded - relying on it recently I felt that references to the Glossary from the tutorial didn't

Re: need opinions for dependencies for some Pyramid related code

2012-02-13 Thread Benjamin Sims
On the other hand, while I love Beautiful Soup and used it for many years, I have found that lxml is considerably faster if you are looking to do heavy duty scraping/extraction, so it may be worth consideration depending on what your particular needs are. On 11 February 2012 21:00, Mike Orr

Re: Behavior Driven Development in Pyramid

2012-02-13 Thread Mike Orr
On Sun, Feb 12, 2012 at 2:27 PM, Theron Luhn the...@madebypanthr.com wrote: Hi guys! I'm a PHP developer, but I've decided to switch to Python and Pyramid for a big upcoming project. Before I dive right into Pyramid, however, I'm doing a bit of research and getting all my ducks in a row, so

Re: Behavior Driven Development in Pyramid

2012-02-13 Thread Theron Luhn
Thanks! I'll take a look at it. - Theron On Mon, Feb 13, 2012 at 11:30 AM, Mike Orr sluggos...@gmail.com wrote: On Sun, Feb 12, 2012 at 2:27 PM, Theron Luhn the...@madebypanthr.com wrote: Hi guys! I'm a PHP developer, but I've decided to switch to Python and Pyramid for a big

Re: Documentation overhaul specifics

2012-02-13 Thread Michael Merickel
On Mon, Feb 13, 2012 at 1:23 PM, Benjamin Sims benjamins...@gmail.comwrote: Sorry to be late to the party, but I would like to pledge £50 (~$80 USD). In terms of concerns/suggestions, I'd particularly like the documentation relating to authentication and authorisation to be expanded - relying

Re: Documentation overhaul specifics

2012-02-13 Thread Mike Orr
On Mon, Feb 13, 2012 at 11:49 AM, Michael Merickel mmeri...@gmail.com wrote: Out of curiosity have you read http://michael.merickel.org/projects/pyramid_auth_demo/ and did it help at all? It was originally written as an auth tutorial/demo separately, but I did have goals of incorporating its

Re: Documentation overhaul specifics

2012-02-13 Thread Michael Merickel
On Mon, Feb 13, 2012 at 2:06 PM, Mike Orr sluggos...@gmail.com wrote: On Mon, Feb 13, 2012 at 11:49 AM, Michael Merickel mmeri...@gmail.com wrote: Out of curiosity have you read http://michael.merickel.org/projects/pyramid_auth_demo/ and did it help at all? It was originally written as

Re: Documentation overhaul specifics

2012-02-13 Thread Eric Rasmussen
I originally wrote the Akhet auth demo at a time when there weren't any examples showing how to integrate Pyramid's auth features with SQLAlchemy. It might still be useful in that sense, for people who need a quick start guide to get from the standalone examples (usually global lists or

Re: Slow requests block other threads with Waitress

2012-02-13 Thread Damien Baty
Le 13/02/12 15:45, Chris McDonough a écrit : On Mon, 2012-02-13 at 15:00 +0100, Damien Baty wrote: Hello, While updating a small application to a more recent version of Pyramid, I switched from Paste to Waitress for development. However, it looks like Waitress cannot process two

Re: Slow requests block other threads with Waitress

2012-02-13 Thread Damien Baty
Le 13/02/12 15:45, Chris McDonough a écrit : On Mon, 2012-02-13 at 15:00 +0100, Damien Baty wrote: [...] this behaviour is due to HTTPChannel.task_lock being shared between all channels. But perhaps all this is intended. Or I am missing something. You're right. I'll try to diagnose and

Re: Slow requests block other threads with Waitress

2012-02-13 Thread Damien Baty
Le 13/02/12 15:53, Chris McDonough a écrit : On Mon, 2012-02-13 at 15:50 +0100, Damien Baty wrote: Le 13/02/12 15:45, Chris McDonough a écrit : On Mon, 2012-02-13 at 15:00 +0100, Damien Baty wrote: [...] this behaviour is due to HTTPChannel.task_lock being shared between all channels. But