[Twisted-Python] Real-world but self-contained example?

2011-06-18 Thread Orestis Markou
Hello, I'm trying to come up with a real-world example of performant twisted code to show as the conclusion of the europython training I'll be giving this Monday. After much help in the #twisted channel, I've written a simple "website monitoring service". I'm trying to keep everything as small

[Twisted-Python] Building API documentation

2011-06-18 Thread Orestis Markou
Apologies for the flood of messages - I'm getting anxious about this training ;) I'm looking for a way to build (or download) the API reference offline, so each trainee would have it locally for faster access. Looks like I should be using t.p._release.APIBuilder, but presumably there's an automa

Re: [Twisted-Python] Building API documentation

2011-06-18 Thread Yaroslav Fedevych
On 18/06/11 10:09, Orestis Markou wrote: > Apologies for the flood of messages - I'm getting anxious about this training > ;) > > I'm looking for a way to build (or download) the API reference offline, so > each trainee would have it locally for faster access. Looks like I should be > using t.p.

[Twisted-Python] Twisted training slides

2011-06-18 Thread Orestis Markou
Hi again, I'd greatly appreciate if someone could have a quick look through my slides: http://dl.dropbox.com/u/34284/twisted_training.pdf (64MB PDF) and comment on possible inaccuracies or flat-out wrong things. I have simplified some things in the beginning, but I expand later on. Many thanks

Re: [Twisted-Python] Twisted training slides

2011-06-18 Thread Laurens Van Houtven
Hey Orestis, I'm driving around at the moment, but as soon as I get home I will take a look at your slides. I will also be attending europython, so let's go grab a beer :) On Jun 18, 2011 9:32 AM, "Orestis Markou" wrote: > Hi again, > > I'd greatly appreciate if someone could have a quick look t

Re: [Twisted-Python] Real-world but self-contained example?

2011-06-18 Thread Jonathan Ballet
[disclaimer: I'm a twisted newbie :) ] On Sat, Jun 18, 2011 at 09:56:51AM +0300, Orestis Markou wrote: > a) someone looking at the code and pointing out possible bugs or ways it > could be improved or I also reproduce the problem, so I tried to shutdown the HTTP GET first to see what was going o

Re: [Twisted-Python] Building API documentation

2011-06-18 Thread Jessica McKellar
Hi Orestis, http://twistedmatrix.com/trac/wiki/ReviewingDocumentation#EditingAPIDocsdescribes building the API docs. Regards, -Jessica On Sat, Jun 18, 2011 at 3:09 AM, Orestis Markou wrote: > Apologies for the flood of messages - I'm getting anxious about this > training ;) > > I'm looking for

Re: [Twisted-Python] Twisted training slides

2011-06-18 Thread Andreas Hausmann
Hi, I am Andreas. I used twisted to build an online backgammon server. I'll post some on that later. My knowledge goes as far as server, client, deferreds and plugins. Based on twisted core tutorial. Orestis Markou wrote: > [...] > and comment on possible inaccuracies or flat-out wrong things. I

Re: [Twisted-Python] Twisted training slides

2011-06-18 Thread Jasper St. Pierre
Quick go-through: * Slide 50: Exercise 1 seems a bit poor -- it relies on the factory, which you haven't introduced other than "oh hey there's this factory attribute" * The panini stall metaphor goes on for way too long (IMO) and doesn't really make sense. * Slide 92: I think having the ca

Re: [Twisted-Python] Building API documentation

2011-06-18 Thread Orestis Markou
Thanks, I managed to do that. For future reference, I just download a tarball of nevow out of launchpad's ubuntu distribution. On 18 Jun 2011, at 15:54, Jessica McKellar wrote: > Hi Orestis, > > http://twistedmatrix.com/trac/wiki/ReviewingDocumentation#EditingAPIDocs > describes building the A

Re: [Twisted-Python] Real-world but self-contained example?

2011-06-18 Thread Orestis Markou
Thanks, the first error slipped through. The even more curious problem is why should that ever happen - getHostByName returns "None" for the address there, when it should errback. It looks like there might be an issue with twisted.names, but I've learned to blame my code at first, esp for things

Re: [Twisted-Python] Twisted training slides

2011-06-18 Thread Andrew Bennetts
Jasper St. Pierre wrote: […] > * Slide 124: As I understand, DeferredList is a bit dated, and you > should use gatherResults instead -- it returns a deferred, and it > hands you a list of all the results in the callback. The dialogue is > also a bit repetitive (a list of Deferreds! I hand it a li

Re: [Twisted-Python] Twisted training slides

2011-06-18 Thread Glyph Lefkowitz
On Jun 18, 2011, at 8:06 PM, Andrew Bennetts wrote: > Jasper St. Pierre wrote: > […] >> * Slide 124: As I understand, DeferredList is a bit dated, and you >> should use gatherResults instead -- it returns a deferred, and it >> hands you a list of all the results in the callback. The dialogue is

[Twisted-Python] Weekly Bug Summary

2011-06-18 Thread exarkun
Bug summary __ Summary for 2011-06-12 through 2011-06-19 Opened Closed Total Change Enhancements: 5 0728 +5 Defects: 0 2520 -2 Tasks: 0 1 7