Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Gabriel Rossetti
On 08/24/2010 04:26 PM, Itamar Turner-Trauring wrote: > On Tue, 2010-08-24 at 15:22 +0200, Gabriel Rossetti wrote: > > >> Ok, so you put Twisted in a thread? I read in several posts that this >> posed problems, have you had any drawbacks? >> > reactor.spawnProcess won't notice processes h

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Gabriel Rossetti
On 08/24/2010 04:37 PM, Stephen Waterbury wrote: > On 08/24/2010 10:08 AM, Stephen Waterbury wrote: >> On 08/24/2010 09:24 AM, Stephen Waterbury wrote: >>> On 08/24/2010 09:22 AM, Gabriel Rossetti wrote: Ok, so you put Twisted in a thread? I read in several posts that this posed problems,

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Gabriel Rossetti
On 08/24/2010 07:32 PM, Andrew Francis wrote: > Hi > > >> I can't find any examples of using Twisted with wxPython, were wx is in >> a seperate thread. I used to have one somewhere but can' t find it >> either. I'm looking because for some reason my code doesn't work (the >> GUI freezes), even

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Andrew Francis
Hi >I can't find any examples of using Twisted with wxPython, were wx is in >a seperate thread. I used to have one somewhere but can' t find it >either. I'm looking because for some reason my code doesn't work (the >GUI freezes), even though I use reactor.callFromThread() for Twisted >calls f

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Itamar Turner-Trauring
On Tue, 2010-08-24 at 15:22 +0200, Gabriel Rossetti wrote: > Ok, so you put Twisted in a thread? I read in several posts that this > posed problems, have you had any drawbacks? reactor.spawnProcess won't notice processes have exited on posix platforms (though you can fix this by installing your

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Stephen Waterbury
On 08/24/2010 09:24 AM, Stephen Waterbury wrote: > On 08/24/2010 09:22 AM, Gabriel Rossetti wrote: >> Ok, so you put Twisted in a thread? I read in several posts that this >> posed problems, have you had any drawbacks? > > I haven't observed any. Reflecting on this a little further (and with the c

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Stephen Waterbury
On 08/24/2010 09:22 AM, Gabriel Rossetti wrote: > On 08/24/2010 03:06 PM, Stephen Waterbury wrote: >> On 08/24/2010 05:40 AM, Gabriel Rossetti wrote: >> >>> Hello, >>> >>> I can't find any examples of using Twisted with wxPython, were wx is in >>> a seperate thread. I used to have one somewhere but

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Gabriel Rossetti
On 08/24/2010 02:11 PM, Itamar Turner-Trauring wrote: > On Tue, 2010-08-24 at 11:40 +0200, Gabriel Rossetti wrote: > >> Hello, >> >> I can't find any examples of using Twisted with wxPython, were wx is in >> a seperate thread. I used to have one somewhere but can' t find it >> either. I'm looki

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Gabriel Rossetti
On 08/24/2010 03:06 PM, Stephen Waterbury wrote: > On 08/24/2010 05:40 AM, Gabriel Rossetti wrote: > >> Hello, >> >> I can't find any examples of using Twisted with wxPython, were wx is in >> a seperate thread. I used to have one somewhere but can' t find it >> either. I'm looking because for s

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Gabriel Rossetti
It may not indeed, but from what I've read it should, I'll look into that, thanks for the reply and idea. Gabriel On 08/24/2010 03:00 PM, Jason Rennie wrote: I have experience getting cherrypy (web server) and Twisted to play together nicely... As you know, reactor.callFromThread is necessary

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Stephen Waterbury
On 08/24/2010 05:40 AM, Gabriel Rossetti wrote: > Hello, > > I can't find any examples of using Twisted with wxPython, were wx is in > a seperate thread. I used to have one somewhere but can' t find it > either. I'm looking because for some reason my code doesn't work (the > GUI freezes), even thou

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Jason Rennie
I have experience getting cherrypy (web server) and Twisted to play together nicely... As you know, reactor.callFromThread is necessary for waking-up twisted from a non-twisted thread. Getting both cherrypy and the reactor running required that I start cherrypy with a callback to run the reactor.

Re: [Twisted-Python] Twisted.web, txOAuth and custom login pages

2010-08-24 Thread exarkun
On 10:57 am, l...@laurensvh.be wrote: >Hey, > > >I'm writing txOAuth. Basically the idea is to abstract all the OAuth >stuff >away so that people can just do boring old web auth. > >[snip] > >I've also found sources on how to do it with Woven, but I'm pretty sure >I'm >not supposed to do that any

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Itamar Turner-Trauring
On Tue, 2010-08-24 at 11:40 +0200, Gabriel Rossetti wrote: > Hello, > > I can't find any examples of using Twisted with wxPython, were wx is in > a seperate thread. I used to have one somewhere but can' t find it > either. I'm looking because for some reason my code doesn't work (the > GUI free

Re: [Twisted-Python] inlineCallbacks cascading cancelling and more

2010-08-24 Thread Sergey Magafurov
> If you can write some unit tests for this, turn the whole thing into a > patch (using svn diff), and attach it to ticket #4632, that'd be great. > > Jean-Paul > done! ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedm

[Twisted-Python] Twisted.web, txOAuth and custom login pages

2010-08-24 Thread Laurens Van Houtven
Hey, I'm writing txOAuth. Basically the idea is to abstract all the OAuth stuff away so that people can just do boring old web auth. I've seen JP's 60 seconds post but it appears to be HTTP Authentication centric. I'd like to be able to offer users pretty login pages. Also, OAuth logins typicall

[Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Gabriel Rossetti
Hello, I can't find any examples of using Twisted with wxPython, were wx is in a seperate thread. I used to have one somewhere but can' t find it either. I'm looking because for some reason my code doesn't work (the GUI freezes), even though I use reactor.callFromThread() for Twisted calls fro