Hi Jessica,

> On Apr 28, 2015, at 10:14 AM, Jessica Tsui <jesadj...@gmail.com> wrote:
SNIP
>  exceptions.AttributeError: MultiEcho instance has no attribute ‘factory'
SNIP
> MultiEcho().dataReceived(sendermessage)
Here you create an instance of the protocol directly, i.e., without having 
instantiated a MutilEchoFactory.  The factory’s buildProtocol method is what 
assigns the factory instance as a member of the protocol (self.factory), and 
since you didn’t create the protocol via a factory, you have no factory 
attribute on your protocol instance.

There are a number of ways to fix this, but generally speaking, you need to 
provide a way for your factories and their protocols to be aware of each other.

Hope this helps,

Daniel
--
L. Daniel Burr
ldanielb...@me.com
(312) 656-8387

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to