[Twisted-Python] SQL ORM for Twisted & PostgreSQL

2013-07-18 Thread Matt Haggard
; It doesn't use txpostgres, but that's because it relies on adbapi2 (also in > calendar server, hopefully to be moved into Twisted at some point). > > -glyph I've made a thing that has a similar API to txpostgres and will use txpostgres underneath if it's installed: https

Re: [Twisted-Python] Trial & the mock library

2013-07-25 Thread Matt Haggard
I have a few thoughts: First, how does this hypothetical system for specifying return types solve the original problem (that user-written methods on TestCase pass unexpectedly when a non-Deferred is returned)? If I'm the one writing test_whatever, with the proposed doc string method for specifyin

[Twisted-Python] Twisted as a House for Sale

2013-08-19 Thread Matt Haggard
luding Ronnie is frozen, staring at you. "That was close!" he says, "you only go through that door once." He seems relieved you didn't go through. "Here, come this way." He shows you to a door labeled "reactor.stop()" and sends you on your way. === I wrote this because it's frustrating to see people make new, shiny toys out to be amazing and revolutionary when they're not built on a solid foundation, are not new, and are not even as good as existing stuff (Twisted). Twisted can fly! I would love for more people to step inside the house and see what it can do, instead of judging it based on incorrect facts or uninformed opinions. Or, more to my point, judging it based on the website (geared toward people working on Twisted), documentation, examples, or multitude of ways to do the same thing because of backward compatibility. I want to mow the lawn, so to speak. I want to plant flowers and make the One Front Door more prominent. I'm considering making a site dedicated to people learning Twisted. It would be cool if it there were things showcasing running Twisted services (websockets + ssh + irc or something). Is there interest in this? Also, what do you think of the story? :) Thanks, (Sorry for the long email.) Matt Haggard ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twisted as a House for Sale

2013-08-20 Thread Matt Haggard
On Mon, Aug 19, 2013 at 6:34 PM, Glyph wrote: > > On Aug 19, 2013, at 10:38 AM, Matt Haggard wrote: > > ... [a story] ... > > > Very entertaining :-). > > My one disappointment with the narrative was that when you were lushly > describing standing in an open fiel

Re: [Twisted-Python] Twisted as a House for Sale

2013-08-21 Thread Matt Haggard
b.com/iffy/twistedftw.git cd twistedftw pip install -r demo_requirements.txt twistd -n txftw # go to http://127.0.0.1:8400 I'm thinking I'll add an SSH and SCP element, too. So far, it seems kind of boring. Maybe a game of some kind would be a better demo? I appreciate any feedback. Matt Haggard

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-08-21 Thread Matt Haggard
FWIW, the separation of generating SQL and executing SQL was my intent in designing this: https://github.com/iffy/norm Currently, it *only* has asynchronous SQL execution, but it wouldn't be hard to add synchronous execution. Also, there's no subclassing of modeled classes. Matt Hagga

Re: [Twisted-Python] Twisted as a House for Sale

2013-08-23 Thread Matt Haggard
Thanks for positive response, everyone! There are now two legitimate articles (yeah, they're small) iffy.github.io/twistedftw I'm planning next to write a hello world for making a webserver using klein. It will mostly be plagiarized from the klein README and then drive them to klein's github pag

Re: [Twisted-Python] Advice on porting Python application to Twisted

2013-08-27 Thread Matt Haggard
On Mon, Aug 26, 2013 at 9:06 PM, Matthew Humphrey wrote: > 2) A thread that runs a loop which manages the hardware. It does this with a > simple state machine composed of a base class and subclasses for all the > states that the hardware can be in (starting, idle, displaying status on the > lcd, d

Re: [Twisted-Python] Twisted as a House for Sale

2013-08-27 Thread Matt Haggard
:10 PM, Senthil Kumaran wrote: > Hi Matt, > > On Fri, Aug 23, 2013 at 3:31 PM, Matt Haggard wrote: >> >> Thanks for positive response, everyone! >> >> There are now two legitimate articles (yeah, they're small) >> iffy.github.io/twistedftw > > >

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] Twisted as a full solution for web hosting [WSGI + other]

2013-10-22 Thread Matt Haggard
ers. With Twisted as the WSGI container, we no longer see the same 500 errors. Eventually, all requests finish. I recommend Twisted as a production WSGI container. Matt Haggard ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twi

Re: [Twisted-Python] Could Service.startService return a Deferred?

2013-11-27 Thread Matt Haggard
Peter, I assume you're using a MultiService to hold all of these services. You could delay adding the dependent services to the MultiService until the setup service has finished doing what it does. For instance, something like this (untested): class SetupService(Service): def __init__(self)

Re: [Twisted-Python] Sharing a database connection in web server

2013-12-19 Thread Matt Haggard
Matthew, I've found klein to be really useful for this. Especially the ability to have non-global state: https://github.com/twisted/klein#non-global-state Matt On Thu, Dec 19, 2013 at 1:05 PM, Matthew Wollenweber wrote: > Hello, > > Could someone please let me know the preferred method for sha

Re: [Twisted-Python] Twisted Endpoints and WebSocket / Autobahn

2013-12-31 Thread Matt Haggard
Tobias, That's neat! Endpoints rock. I'd like to put this up on twistedftw.org -- I look forward to your complete example. Matt On Tue, Dec 31, 2013 at 3:41 AM, Tobias Oberstein wrote: >> > Thing is: I was looking for --endpoint "..." argument with twistd, but >> > there isn't. >> > >> > How

Re: [Twisted-Python] PLEASE TEST: the new pyOpenSSL alpha release is a major change, and if you use TLS at all with Twisted you should test it

2014-01-21 Thread Matt Haggard
Okay, glyph, since you're shouting :) When installing, I ran into not having libffi-dev installed (ubuntu). It wasn't hard to overcome -- just a new dependency I don't typically install. (I'm not even gonna try on OS X 10.6.8) I ran the functional tests of some of our stuff here at work with the

Re: [Twisted-Python] Security Advisory: bash remote code execution

2014-09-25 Thread Matt Haggard
> > Any web server which is serving traffic over a CGI or CGI-like interface > (including WSGI) should upgrade its version of Bash immediately. > I feel ignorant, but I'm confused about how WSGI is affected (and have failed to exploit my WSGI app). AFAICT from reading the code, Twisted's WSGIReso

Re: [Twisted-Python] 15.0 Prerelease Reports

2015-01-16 Thread Matt Haggard
No issues with my code base, though it doesn't heavily use Twisted. On Fri, Jan 16, 2015 at 3:35 PM, Werner Thie wrote: > Hi > > OSX 10.10.1 > > uname -a > Darwin .local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 > PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64 > > Python