On 18/06/10 16:25, Szabolcs Balogh wrote: > On Friday 18 June 2010 17:49:27 Phil Mayers wrote: >> On 18/06/10 15:34, Szabolcs Balogh wrote: >>> def get_mailbox_list(self): >>> twisted.internet.reactor.run() >> >> The reactor isn't restartable. You can only start it once. >> >> _______________________________________________ >> Twisted-Python mailing list >> [email protected] >> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > > Than how can I start checking for messages for different accounts (When I have > finished checking the messages for the first account to start checking for the > next account, and so on...)?
Others have already answered this, but one way to explain it: You don't "call the reactor" like a function. You start the reactor, and arrange for *it* to call *your* code in response to events. One type of events being timer ticks. _______________________________________________ Twisted-Python mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
