Re: [Twisted-Python] Urgent - reactor is not working out of a sudden

2015-05-02 Thread Jessica Tsui
just says that it cannot reference to connectTCP or listenTCP in reactor...which did not happen before. I had no idea why. On 3 May, 2015 12:32 am, "Itamar Turner-Trauring" wrote: > On 05/02/2015 11:54 AM, Jessica Tsui wrote: > >> >> I was working on my program and eve

[Twisted-Python] Urgent - reactor is not working out of a sudden

2015-05-02 Thread Jessica Tsui
I was working on my program and everything was fine, out of the blue the python editor just told me that connectTCP and listenTCP cannot be referenced in reactor.py. I tried to reinstall twisted but that didn't help at all. How could I solve this? ___ Twi

Re: [Twisted-Python] flushing data to clients after a global variable is updated in server

2015-04-30 Thread Jessica Tsui
Hi Glyph, Thank you so much for your detailed explanation. You are a life saver! Best, Jessica 2015-05-01 3:39 GMT+08:00 Glyph Lefkowitz : > > On Apr 29, 2015, at 12:33 AM, Jessica Tsui wrote: > > Hi, it's me again. I am still working on the kivy app, and now I am trying &g

[Twisted-Python] flushing data to clients after a global variable is updated in server

2015-04-29 Thread Jessica Tsui
Hi, it's me again. I am still working on the kivy app, and now I am trying to add a function to the app - the server side has two seconds to decide if he wants to alter the original data sent from one client to other clients. If he would like to do so, he has to press a button. If he does not press

Re: [Twisted-Python] attribute error when I am trying to make one factory to send data to another

2015-04-28 Thread Jessica Tsui
nline, so I am not sure if I am really doing things right. I hope that I am on the right track for it with the help from Twisted and kivy. 2015-04-29 6:20 GMT+08:00 Glyph Lefkowitz : > > On Apr 28, 2015, at 8:14 AM, Jessica Tsui wrote: > > I am working on this messaging app and I would

Re: [Twisted-Python] attribute error when I am trying to make one factory to send data to another

2015-04-28 Thread Jessica Tsui
Hi Pantelis, sorry for bothering you again. But I just ran the code and it still has error with the line self.factory.app.echoFactory().dataReceived(receivermessage) as well as for echoer in self.factory.app.multiechofactory.echoers the errors are 'ServerApp' object has no attribute 'echoFactory'

Re: [Twisted-Python] attribute error when I am trying to make one factory to send data to another

2015-04-28 Thread Jessica Tsui
oers: > echoer.dataReceived(sendermessage) > > or: > > if sendermessage: > self.transport.write(data) > > self.app.multiechofactory.echo_them_all() > > and define the echo_them_all() method in the MultiEchoFactory() class. &g

Re: [Twisted-Python] attribute error when I am trying to make one factory to send data to another

2015-04-28 Thread Jessica Tsui
rr : > Hi Jessica, > > On Apr 28, 2015, at 10:14 AM, Jessica Tsui wrote: > > SNIP > > exceptions.AttributeError: MultiEcho instance has no attribute ‘factory' > > SNIP > > MultiEcho().dataReceived(sendermessage) > > Here you create an instance of the pr

[Twisted-Python] attribute error when I am trying to make one factory to send data to another

2015-04-28 Thread Jessica Tsui
I am working on this messaging app and I would like to pass data from one factory to another. I have been referencing to other answers provided in other similar questions by trying to add a variable storing the data from one factory then initiate another factory and write the data to it. Unfortunat