Re: [pylons-discuss] python 3 pyramid async solution

2014-12-24 Thread Randall Leeds
I'm totally biased because I'm a gunicorn contributor, but I'll try to answer completely. With python 3 you can use asyncio, but the framework has to support it. For that you could use https://github.com/mardiros/pyramid_asyncio If you'd rather write your code in traditional style, I think the ma

[pylons-discuss] python 3 pyramid async solution

2014-12-24 Thread Mehdi
Hi In part of my app i have to run a long process on server and at the end send the result to client. so i am looking for kind of *async* view/response/... to *push* some messages to client while process continues on server. There is some good solution for python 2.x like gevent, but i'm using

Re: [pylons-discuss] Re: Finding a session

2014-12-24 Thread Jonathan Vanasco
On Wednesday, December 24, 2014 1:52:53 PM UTC-5, Mike Orr wrote: > > I think I misunderstood what you meant. You mean to display the > current session (in which case it can pull it from 'request.session' > without knowing the session ID)? I do do that in some applications, > and that may be t

Re: [pylons-discuss] Re: Finding a session

2014-12-24 Thread Mike Orr
I think I misunderstood what you meant. You mean to display the current session (in which case it can pull it from 'request.session' without knowing the session ID)? I do do that in some applications, and that may be the easiest way here. But as for displaying other sessions or all sessions, I'm n

Re: [pylons-discuss] How to easily create a DummyRequest for views that expect peppercorn POST values?

2014-12-24 Thread pyramidX
Thanks for the suggestion, it is good to know all the options I have. I'll take a look and see if the boilerplate functionality is similar enough between various views to be factored out into a decorator, in which case this solution would work, otherwise I'd have to go back to the testing style