On Fri, Jun 24, 2011 at 19:29, wrote:
> class SetupClass(service.Service):
> def __init__(self, reactor):
> self._reactor = reactor
>
> def startService(self):
> self._startupCall = self._reactor.callLater(3, self.done)
Thanks Jean-Paul,
I've taken the first su
On 05:06 pm, step...@thorne.id.au wrote:
On Fri, Jun 24, 2011 at 18:23, wrote:
Using the global reactor makes code less easily testable. �This isn't
specific to plugins, you should avoid the global reactor in all your
Twisted-using code. �Accept it as a parameter instead.
Ah, I did not do th
On Fri, Jun 24, 2011 at 18:23, wrote:
> Using the global reactor makes code less easily testable. This isn't
> specific to plugins, you should avoid the global reactor in all your
> Twisted-using code. Accept it as a parameter instead.
Ah, I did not do this successfully in my rewrite. I'd be i
On 03:41 pm, robert.wat...@gmail.com wrote:
>On Tue, Jun 21, 2011 at 5:32 PM, wrote:
>>
>>Don't define Options or makeService in the dropin file.
The system will perform better if there is less code in the dropin file
(or imported by the dropin file). There are some ideas to add an
optimizatio
On Tue, Jun 21, 2011 at 5:32 PM, wrote:
>
> Don't define Options or makeService in the dropin file.
>
> Use twisted.application.service.ServiceMaker instead of implementing
> your own.
>
> Don't use the global reactor in SetupService.
>
>
>
Would you please elaborate on the three items above?
Mo
On 07:32 am, step...@thorne.id.au wrote:
On Tue, Jun 21, 2011 at 23:32, wrote:
Don't define Options or makeService in the dropin file.
Use twisted.application.service.ServiceMaker instead of implementing
your own.
Oh that's nice. I'll rewrite to use that now. What's the first
argument to Se
On Tue, Jun 21, 2011 at 23:32, wrote:
> Don't define Options or makeService in the dropin file.
>
> Use twisted.application.service.ServiceMaker instead of implementing
> your own.
Oh that's nice. I'll rewrite to use that now. What's the first
argument to ServiceMaker, 'name' for? it's not docum
On 04:17 pm, step...@thorne.id.au wrote:
>G'day,
>
>Here at europython there was an excellent tutorial given on the first
>afternoon that was so well attended and regarded that a repeat is
>being done tomorrow afternoon (24 hours from this posting).
>
>I was asked by the person running the training