Re: [Twisted-Python] Log rotates not as expected

2010-01-28 Thread Pet
On Fri, Jan 22, 2010 at 10:21 PM, Lucas Taylor wrote: > On 1/22/10 3:15 AM, Pet wrote: >> On Fri, Jan 22, 2010 at 12:13 AM, Lucas Taylor >> wrote: >>> On 1/21/10 11:17 AM, Pet wrote: On Thu, Jan 21, 2010 at 7:02 PM, Maarten ter Huurne wrote: > On Thursday 21 January 2010, Lucas Ta

Re: [Twisted-Python] Log rotates not as expected

2010-01-28 Thread Ralph Meijer
On Thu, 2010-01-28 at 09:46 +0100, Pet wrote: > [..] > > I'm getting an error while starting my service: > > Failed to load application: 'module' object has no attribute 'ILogObserver' ILogObserver was introduced in Twisted 8.2. You are probably using an older version. ralphm _

Re: [Twisted-Python] Log rotates not as expected

2010-01-28 Thread Pet
On Thu, Jan 28, 2010 at 9:46 AM, Pet wrote: > On Fri, Jan 22, 2010 at 10:21 PM, Lucas Taylor > wrote: >> On 1/22/10 3:15 AM, Pet wrote: >>> On Fri, Jan 22, 2010 at 12:13 AM, Lucas Taylor >>> wrote: On 1/21/10 11:17 AM, Pet wrote: > On Thu, Jan 21, 2010 at 7:02 PM, Maarten ter Huurne >

[Twisted-Python] understanding deferreds

2010-01-28 Thread Michael P. Soulier
Hello, I've been reading up on this http://twistedmatrix.com/documents/current/core/howto/defer.html I'm a bit confused as to the "visual explanation". It seems like if you have a single callback and errback, that if the errback wants to swallow the error, the callback will not be called at all,

Re: [Twisted-Python] understanding deferreds

2010-01-28 Thread exarkun
On 10:28 pm, msoul...@digitaltorque.ca wrote: >Hello, > >I've been reading up on this > >http://twistedmatrix.com/documents/current/core/howto/defer.html > >I'm a bit confused as to the "visual explanation". It seems like if you >have a >single callback and errback, that if the errback wants to sw

Re: [Twisted-Python] understanding deferreds

2010-01-28 Thread Terry Jones
> "Michael" == Michael P Soulier writes: Michael> I'm a bit confused as to the "visual explanation". It seems like Michael> if you have a single callback and errback, that if the errback Michael> wants to swallow the error, the callback will not be called at Michael> all, since deferred proce

Re: [Twisted-Python] understanding deferreds

2010-01-28 Thread Tristan Seligmann
On Fri, Jan 29, 2010 at 12:39 AM, wrote: > There are at least three ways you can have a single callback and > errback: > >   d.addCallback(cb) >   d.addErrback(eb) > > or > >   d.addErrback(eb) >   d.addCallback(cb) Just to expand on exarkun's answer a little, it might help to understand that ad

Re: [Twisted-Python] understanding deferreds

2010-01-28 Thread Michael P. Soulier
On 29/01/10 Tristan Seligmann said: > Just to expand on exarkun's answer a little, it might help to > understand that addCallback and addErrback are simply implemented in > terms of addCallbacks. Roughly: > > def passthru(arg): > return arg > > d.addCallback(cb) is equivalent to d.addCallbac