Re: [Twisted-Python] Difficulty restarting/shutting down a twisted server - ports not closing

2013-06-12 Thread Laurens Van Houtven
Hi Paul The documentation covers how to use Twisted with Tk (and many other event loops). Here's the link you want: https://twistedmatrix.com/documents/current/core/howto/choosing-reactor.html#auto16 Hope that helps :) lvh ___ Twisted-Python mailing

Re: [Twisted-Python] reload / restart best practices ?

2013-06-12 Thread Jonathan Vanasco
On Jun 12, 2013, at 4:31 PM, Glyph wrote: I'm not sure what autoload is. I am assuming it's some kind of auto-re-loading technology though. The earlier discussions talked about Django's autoload, which reloads the entire process on a config file change. You do want to re-start your

Re: [Twisted-Python] Difficulty restarting/shutting down a twisted server - ports not closing

2013-06-12 Thread Naveen Michaud-Agraw
Hi Paul, Have you tried the solution listed here: http://twistedmatrix.com/documents/13.0.0/core/howto/choosing-reactor.html#auto16 With this approach, twisted would manage tkinter and you won't block on any twisted API calls. Sent from my iPhone On Jun 12, 2013, at 3:58 PM, Paul Sajna

Re: [Twisted-Python] reload / restart best practices ?

2013-06-12 Thread Terry Jones
Hi Jonathan You might also find something like this useful: http://twistedmatrix.com/pipermail/twisted-python/2009-December/021107.html Optionally, it would be easy to add a timeout value to the class that could cancel outstanding deferreds after a certain amount of time and then fire all the

Re: [Twisted-Python] Testing AMP-based code

2013-06-12 Thread exarkun
On 5 Jun, 07:13 pm, f...@64studio.com wrote: Hi, following up from ticket #6502, I'm looking for recommendations/best practices for writing unit-tests for AMP-based code. As described in the ticket, the issue I'm currently facing is that the AMP implementation is subtly not re-entrant safe and