Re: [Twisted-Python] jQuery.Deferred - why did they have to go and change the interface?

2011-06-27 Thread Amaury Forgeot d7;Arc
back chain is not paused when a callback returns another Deferred IOW, don't use it as a Deferred. The Mochikit implementation looks much more similar to Twisted. -- Amaury Forgeot d'Arc ___ Twisted-Python mailing list Twisted-Python@twistedm

Re: [Twisted-Python] Is it possible to know what kind of methods are thread safe?

2011-05-15 Thread Amaury Forgeot d7;Arc
> safe besides of reading source codes? Or I use > reacator.callFromThread for all related methods from threads other than > reactor thread? Yes. Unless it is clearly mentioned in a function's documentation, reactor.callFromThread is the only function that is safe to call fro

Re: [Twisted-Python] UDP crashes python.exe when using IOCPReactor

2009-12-16 Thread Amaury Forgeot d7;Arc
working, after exactly 1000 datagrams have been received (and no, it's not related to sys.setrecursionlimit) -- Amaury Forgeot d'Arc ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] XML parsing on twisted

2009-10-03 Thread Amaury Forgeot d7;Arc
ed, the & character is a special character in XML. You are parsing an invalid XML string. This page says it well: http://www.devx.com/tips/Tip/14068 (a 10 years old "tip of the day"!) -- Amaury Forgeot d'Arc ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] run queries in deffered, but not in transaction

2009-09-17 Thread Amaury Forgeot d7;Arc
above, so I would like to understand why it does not work in this case. -- Amaury Forgeot d'Arc ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] util.quote deprecated

2009-03-03 Thread Amaury Forgeot d7;Arc
28', 'BUY', 'IBM', 1000, 45.00), ('2006-04-05', 'BUY', 'MSOFT', 1000, 72.00), ('2006-04-06', 'SELL', 'IBM', 500, 53.00), ]: c.execute('insert into stocks values (?,?,?,?,?)', t)

Re: [Twisted-Python] combining addCallback and callLater ?

2008-12-16 Thread Amaury Forgeot d7;Arc
d2.addCallback( printResults, 1) > d2.addCallback( printResults, 2) > > > d1.addCallback(fireLater, d2) > d1.callback("fire") > > reactor.run() > *********end I've already written this some times: d1.addCallback(5, reactor.callLater,

Re: [Twisted-Python] sending file but LineReceiver doesnt run

2008-11-25 Thread Amaury Forgeot d7;Arc
limit of MAX_LENGTH = 16384 bytes per "line". When you send 100KB in a row, it calls it lineLengthExceeded() method and loses its connection... > File transfers are not best done using a line-oriented protocol. Have a > look > at the "Protocol