[Twisted-Python] a question about self.factory in pb.Broker

I'm attempting to build a Twisted pb client in Actionscript. or at least enough to act as the client in this example . . http://twistedmatrix.com/projects/core/documentation/howto/pb-cred.html#auto... I'm a bit stuck here . . def _sendError(self, fail, requestID): """(internal) Send an error for a previously sent message. """ if isinstance(fail, failure.Failure): # If the failures value is jellyable or allowed through security, # send the value if (isinstance(fail.value, Jellyable) or self.security.isClassAllowed(fail.value.__class__)): fail = fail.value elif not isinstance(fail, CopyableFailure): fail = failure2Copyable(fail, self.factory.unsafeTracebacks) if isinstance(fail, CopyableFailure): fail.unsafeTracebacks = self.factory.unsafeTracebacks self.sendCall("error", requestID, self.serialize(fail)) where should self.factory be set ? what is self.factory ? PbClientFactory ?

On Mon, 25 Aug 2008 17:43:27 +0100, A <aldoogy@gmail.com> wrote:
See http://twistedmatrix.com/trac/browser/trunk/twisted/internet/protocol.py#L87 Jean-Paul

Thanks, so out of curiosity , does Factory.buildProtocol() get called after PBClientFactory.clientConnectionMade(self,broker) ? http://twistedmatrix.com/trac/browser/tags/releases/twisted-8.1.0/twisted/sp... Is the broker parameter a reference to the class rather than an instance of Broker ? A. Jean-Paul Calderone wrote:

On Mon, 25 Aug 2008 17:43:27 +0100, A <aldoogy@gmail.com> wrote:
See http://twistedmatrix.com/trac/browser/trunk/twisted/internet/protocol.py#L87 Jean-Paul

Thanks, so out of curiosity , does Factory.buildProtocol() get called after PBClientFactory.clientConnectionMade(self,broker) ? http://twistedmatrix.com/trac/browser/tags/releases/twisted-8.1.0/twisted/sp... Is the broker parameter a reference to the class rather than an instance of Broker ? A. Jean-Paul Calderone wrote:
participants (2)
-
A
-
Jean-Paul Calderone