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

A aldoogy at gmail.com
Mon Aug 25 12:43:27 EDT 2008

I'm attempting to build a Twisted pb client in Actionscript.
or at least enough to act as the client in this example . .

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 
            # send the value
            if (isinstance(fail.value, Jellyable) or
                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 ?

More information about the Twisted-Python mailing list