Re: [Twisted-Python] Twisted Sprint Report (2013-09-23)

2013-09-26 Thread Glyph
On Sep 25, 2013, at 10:20 PM, Hynek Schlawack wrote: >> What tools actually make use of this file? > > pip install -r dev-requirements.txt OK. If this is the way that this file is intended to be used, perhaps there should be a comment explaining that at the top :). -glyph_

Re: [Twisted-Python] Clean pb solution for two-way object sync?

2013-09-26 Thread Glyph
On Sep 25, 2013, at 11:05 PM, Daniel Sank wrote: > This isn't THAT bad. The client's requestMove is thin and unecessary (I put > it there for illustration). Still I need to have two separate classes with > corresponding methods to handle moving the piece. That's OK. Don't try to reduce your n

[Twisted-Python] question about subprocess

2013-09-26 Thread Jonathan Vanasco
Quick question about (sub)processes in twisted : how bad is it to use the subprocess module ? ( in general / in this application ) I have the following setup : - Twisted Daemon that does 5 things (very well!) - A new requirement -- to execute 2 scripts on the commandli

Re: [Twisted-Python] question about subprocess

2013-09-26 Thread Glyph
On Sep 26, 2013, at 6:51 PM, Jonathan Vanasco wrote: > > Quick question about (sub)processes in twisted : > > how bad is it to use the subprocess module ? ( in general / in this > application ) It's pretty bad ;-). > I have the following setup : > > - Twisted Daemon that does

Re: [Twisted-Python] Clean pb solution for two-way object sync?

2013-09-26 Thread Daniel Sank
> If anything, you should have an additional class to separate out your remote_* responders and the actual internal state. Indeed. > I don't know if this is going to *directly* address any of your concerns, but have you considered using twisted.spread.flavors.Cacheable? This is funny. I read the

Re: [Twisted-Python] question about subprocess

2013-09-26 Thread Matt Haggard
On Sep 26, 2013 8:18 PM, "Glyph" wrote: > > > On Sep 26, 2013, at 6:51 PM, Jonathan Vanasco wrote: > > Could you write up why you feel it's "annoying"? Maybe we can improve spawnProcess so it works better for you in the future. I'm also interested in what you feel is annoying. Please write this

Re: [Twisted-Python] Clean pb solution for two-way object sync?

2013-09-26 Thread Daniel Sank
Upon re-reading the Cacheable docs I still don't understand how to use it. Can we take my previous home-brewed example and use that as a launch point for illustrating how to use Cacheable? Here's the example. We assume the client has a PlayerClient instance with .server pointing to a PlayerServer