Re: [Twisted-Python] LoopingCall at a non-idling reactor

2009-07-18 Thread Glyph Lefkowitz
On Sat, Jul 18, 2009 at 3:33 PM, Ilya Etingof wrote: > I can't get Twisted reactor calling my function in a more or less > periodic fashion with the LoopingCall mechanics. > > With select()-based reactor, the LoopingCall object seems to call back my > timer function only on select() timeout. If I/

Re: [Twisted-Python] Simple Epoll Reactor question

2009-07-18 Thread Glyph Lefkowitz
On Sat, Jul 18, 2009 at 2:41 PM, Andrew Francis wrote: > What am I doing wrong? Thanks in advance. The first google hit for "epollreactor api" is: . The two lines of code there are the *only* things your program sho

Re: [Twisted-Python] Simple Epoll Reactor question

2009-07-19 Thread Glyph Lefkowitz
On Sun, Jul 19, 2009 at 12:08 PM, Andrew Francis wrote: > Adding 'from twisted.internet import reactor' wasn't obvious to me. Perhaps > this should also be mentioned on the "Choosing a Reactor" page for > completeness? The "choosing a reactor" document could definitely be made clearer; please f

Re: [Twisted-Python] LoopingCall at a non-idling reactor

2009-07-19 Thread Glyph Lefkowitz
On Sun, Jul 19, 2009 at 10:43 AM, Phil Mayers wrote: > Viewing the reactor as a device that emits a stream of events (timer > ticks, socket reads, write requests etc.) the problem can be considered > a QoS issue.  It's hard to see how the reactor could "know" how to do > the right thing in all cas

Re: [Twisted-Python] An alternative Twisted GPS protocol implementation

2009-07-19 Thread Glyph Lefkowitz
On Sun, Jul 19, 2009 at 3:37 PM, Laurens Van Houtven wrote: > Right now it only supports NMEA. The old system supported Rockwell as > well. What I'd like to hear from you (you mostly being potential users > of this piece of code): do you care about Rockwell (aka Zodiac) > support? If you're just u

Re: [Twisted-Python] LoopingCall at a non-idling reactor

2009-07-20 Thread Glyph Lefkowitz
On Mon, Jul 20, 2009 at 6:52 AM, Phil Mayers wrote: > Fascinating though the topic is, I very much doubt I'll have any time to > even look at it. > A familiar refrain. That said; is there a reactor "performance" test? Hmm. No, not really. It would be helpful to develop one, I think. Especial

Re: [Twisted-Python] LoopingCall at a non-idling reactor

2009-07-20 Thread Glyph Lefkowitz
On Mon, Jul 20, 2009 at 7:33 AM, Ilya Etingof wrote: > Isn't this call priority policy appears somewhat rigid and obscure? > > Would it be clearer if user would be allowed to assign relative > weights to his/her receiption and timer functions so that main loop > could choose what to call in case

Re: [Twisted-Python] Timers in Twisted

2009-07-20 Thread Glyph Lefkowitz
On Mon, Jul 20, 2009 at 8:26 AM, David Guerin wrote: > Hey all, > > I'm pretty new to Twisted Framework but things are going along nicely. > At the moment I am trying to get a timer to fire off say every 5 > minutes. > What's the best way to do this with twisted? > I found an old link to a how to

Re: [Twisted-Python] Possible Twisted sprint

2009-07-20 Thread Glyph Lefkowitz
On Mon, Jul 20, 2009 at 9:27 PM, Itamar Shtull-Trauring wrote: > I asked, and ITA seems willing to provide a conference room or two with > Internet for sprinters. I will try for official signoff given more > details like dates and # of people. Great. Thanks for setting this up. ___

Re: [Twisted-Python] Volunteering for Release Manager

2009-07-25 Thread Glyph Lefkowitz
On Tue, Jul 14, 2009 at 3:59 AM, Jonathan Lange wrote: > Also, unless you object, I'll try to send weekly emails on the status of > the release until it's actually out. > So... this sounded like a great idea, but where are those emails? :) It's been a bit more than a week, I think. __

Re: [Twisted-Python] License for code in twisted's sandbox?

2009-07-27 Thread Glyph Lefkowitz
On Mon, Jul 27, 2009 at 10:34 AM, Vishal Shetye wrote: > I had posted a query about laxdb on this list > http://twistedmatrix.com/pipermail/twisted-python/2009-July/020030.html > laxdb code is in sandbox and is not released with twisted. The file itself > does not have any license. > Can it be use

Re: [Twisted-Python] PPA repo

2009-07-27 Thread Glyph Lefkowitz
On Mon, Jul 27, 2009 at 1:55 PM, Esteve Fernandez wrote: > could any of the admins of the twisted-dev Launchpad team create a PPA? I'd > do > it myself, but I don't have permission (AFAIK, only admins do). We're > currently providing packages for Ubuntu Hardy from Fluidinfo's PPA (see > ticket >

Re: [Twisted-Python] Simple Epoll Reactor question

2009-07-27 Thread Glyph Lefkowitz
On Mon, Jul 27, 2009 at 11:18 AM, David Bern wrote: > On Fri, Jul 24, 2009 at 12:22 PM, Andrew Francis > wrote: > > Can do. Tell me how to submit a document patch. > David, thanks for trying to answer, but you described a few of the particulars in a slightly non-standard way and you skipped a

Re: [Twisted-Python] Possible Twisted sprint

2009-07-29 Thread Glyph Lefkowitz
On Mon, Jul 20, 2009 at 9:40 PM, Glyph Lefkowitz wrote: > On Mon, Jul 20, 2009 at 9:27 PM, Itamar Shtull-Trauring < > ita...@itamarst.org> wrote: > >> I asked, and ITA seems willing to provide a conference room or two with >> Internet for sprinters. I will try for

Re: [Twisted-Python] twisted.positioning: status report and request for comments/feedback

2009-07-29 Thread Glyph Lefkowitz
On Wed, Jul 29, 2009 at 6:08 PM, Laurens Van Houtven wrote: > As you might remember, we (thanks to the adhoc code reviews from > glyph, tazle, dash andexarkun) decided on an implementation slightly > different from the original one, using: >- an NMEAReceiver class, which *only* does the receiv

Re: [Twisted-Python] twisted.positioning: status report and request for comments/feedback

2009-07-30 Thread Glyph Lefkowitz
On Thu, Jul 30, 2009 at 8:26 AM, Laurens Van Houtven wrote: > On Thu, Jul 30, 2009 at 3:01 AM, Glyph Lefkowitz > wrote: > > I've attached a sketch > Extremely helpful, thank you. You're welcome. > To be honest, it > still looks kind of wonky that a LineReceiver

Re: [Twisted-Python] twisted.positioning: status report and request for comments/feedback

2009-07-30 Thread Glyph Lefkowitz
On Thu, Jul 30, 2009 at 10:14 AM, Laurens Van Houtven wrote: > Oh, by the way: would you guys expect NMEASentences to be immutable > objects? > Yes, but by convention, not necessarily by enforcement. The really important thing is that the framework should not share or mutate NMEASentence objects

Re: [Twisted-Python] Missing Interface?

2009-07-30 Thread Glyph Lefkowitz
On Fri, Jul 31, 2009 at 12:31 AM, Kevin Horn wrote: > the following classes: > > twisted.cred.credentials.CramMD5Credentials > twisted.mail.imap4.PLAINCredentials > twisted.mail.imap4.LOGINCredentials > > all seem to implement the same interface, yet there is no Interface defined > for these obje

Re: [Twisted-Python] Questions about adding documentation

2009-07-31 Thread Glyph Lefkowitz
On Fri, Jul 31, 2009 at 1:16 PM, Jessica McKellar < jessica.mckel...@gmail.com> wrote: > I am not scared off. In fact, I'm updating the > wiki/ContributingToTwistedLabs and related how-to-edit-documentation pages > right now. > I see the edits in the timeline. They look great! Thanks! :-D Do y

Re: [Twisted-Python] twisted.positioning: status report and request for comments/feedback

2009-07-31 Thread Glyph Lefkowitz
On Fri, Jul 31, 2009 at 4:20 PM, Laurens Van Houtven wrote: > Also, regarding the message classes at every level: does this include > the top level? I thought the top level (eg most abstracted) would > contain a number of callbacks, such as: > >positionReceived(self, latitude, longitude) >

Re: [Twisted-Python] Questions about adding documentation

2009-07-31 Thread Glyph Lefkowitz
On Fri, Jul 31, 2009 at 11:10 PM, Steve Steiner (listsin) < list...@integrateddevcorp.com> wrote: > Since "everything" is not in the build system anyway, perhaps starting > a branch, in a new build system (Sphinx), where we pull things in, one > chunk at a time, will not be a hit and run approach,

Re: [Twisted-Python] Deferred documentation rewrite

2009-07-31 Thread Glyph Lefkowitz
On Fri, Jul 31, 2009 at 6:40 PM, Edward Z. Yang wrote: > You can view an initial draft of the rewrite here: This is a great first draft! Very substantial. I really appreciate you working on this. Now I will proceed to rip it to shreds by way of giving you some feedback, but please try to tak

Re: [Twisted-Python] Questions about adding documentation

2009-07-31 Thread Glyph Lefkowitz
On Sat, Aug 1, 2009 at 12:11 AM, Steve Steiner < list...@integrateddevcorp.com> wrote: > > I hope you can see why I want to hold on to our current toolchain > > until we have someone around who has demonstrated a much deeper > > commitment to documentation than anyone yet has. For example, > > St

Re: [Twisted-Python] [Fwd: Re: Deferred documentation rewrite]

2009-07-31 Thread Glyph Lefkowitz
On Fri, Jul 31, 2009 at 11:35 PM, Edward Z. Yang wrote: > Excerpts from Itamar Shtull-Trauring's message of Fri Jul 31 22:26:29 -0400 > 2009: > > The problem with this is that it perpetuates the misunderstanding the > > Deferreds *make* things asynchronous, even with the intro that says > > other

Re: [Twisted-Python] what's a workaround for Ticket #3472 (sendmail has no timeout)?

2009-08-01 Thread Glyph Lefkowitz
On Sat, Aug 1, 2009 at 2:54 PM, Dave Britton wrote: > What would be the best way for me to work around this? Fix the bug :). Then, I hope, contribute a patch... (see http://twistedmatrix.com/trac/wiki/TwistedDevelopment for that part). > Specifically, when I use twisted.mail.smtp sendmail()

Re: [Twisted-Python] Questions about adding documentation

2009-08-01 Thread Glyph Lefkowitz
On Sat, Aug 1, 2009 at 11:30 PM, Steve Steiner (listsin) < list...@integrateddevcorp.com> wrote: > Where would we put an "inventory" project for it to be most useful? >> > > As JP mentioned earlier in this thread, some work has already taken place > here:

Re: [Twisted-Python] twisted.positioning preliminary review

2009-08-03 Thread Glyph Lefkowitz
On Mon, Aug 3, 2009 at 8:56 PM, Laurens Van Houtven wrote: > I could produce an actual patch, but perhaps it would be more useful > to do this with the Launchpad-published bzr branch? Obviously that > means I can't attach a real patch to a trac ticket. If people want me > to, I will. The ticket

Re: [Twisted-Python] Deferred documentation rewrite

2009-08-05 Thread Glyph Lefkowitz
On Mon, Aug 3, 2009 at 6:00 PM, Edward Z. Yang wrote: > I have updated my draft here: > >http://ezyang.com/twisted/defer2.html > Thanks. Looks like it's improving. I've got more points to critique now, but that's only because there's more meat to the tutorial now :). 1. The coding stan

Re: [Twisted-Python] Changing threadpool size in reactor

2009-08-06 Thread Glyph Lefkowitz
On Thu, Aug 6, 2009 at 2:12 PM, Darren Govoni wrote: > Hi, > I could see from the docs I read how to increase the allotted threads > in the reactor. > > I use reactor.callInThread() and it seems to max out at 10. I read > about ThreadPool class, but need to run mine in the reactor. > The re

Re: [Twisted-Python] twisted.positioning -- Interface, or class with method stubs?

2009-08-09 Thread Glyph Lefkowitz
On Sun, Aug 9, 2009 at 7:30 PM, Laurens Van Houtven wrote: > As you probably know, the interfaces for t.p live in t.p.ipositioning. > I still haven't quite understood why they are going to be awesome, but > anyway -- I'm running into a problem where keeping them would (I > think) imply a bunch of

Re: [Twisted-Python] Documentation

2009-08-11 Thread Glyph Lefkowitz
On Mon, Aug 10, 2009 at 2:56 AM, John Aherne wrote: > Prompted by exarkun, I have put together some simple documentation for > beginners starting with Twisted. > Thanks for doing this. All documentation help is useful :). > But before I spend more time on honing the document, I thought it wo

Re: [Twisted-Python] unicode for pyPgSQL

2009-08-12 Thread Glyph Lefkowitz
On Wed, Aug 12, 2009 at 11:28 AM, Pet wrote: > Hello, > > does pyPgSQL doesn't support unicode? > Sounds like a question for the pyPgSQL list, not the Twisted list :) ___ Twisted-Python mail

Re: [Twisted-Python] Twisted, wxPython & Mac OS X 10.5 freezes

2009-08-12 Thread Glyph Lefkowitz
On Wed, Aug 12, 2009 at 11:47 AM, Gabriel Rossetti < gabriel.rosse...@arimaz.com> wrote: > I have written an application using Twisted, WX and I wanted to test it > under Mac. I have successfully used it on linux and windows before. When > I run it, I often get the pinwheel of death and then the w

Re: [Twisted-Python] unicode for pyPgSQL

2009-08-12 Thread Glyph Lefkowitz
On Wed, Aug 12, 2009 at 12:51 PM, wrote: > I did recently learn that pyPgSQL doesn't support bind parameters, > apparently resulting in almost any use of it insecure and vulnerable to > SQL injection attacks. You may want to investigate this further before > deciding if it's worth figuring out h

Re: [Twisted-Python] twisted.positioning: progress report + Factory question

2009-08-13 Thread Glyph Lefkowitz
On Thu, Aug 13, 2009 at 6:26 AM, Laurens Van Houtven wrote: > Short question up front: what exactly should be in the proposed > factory class? What does it take? What does it return? > Factory class proposed by whom and for what? If it's a thing that creates IPositionReceivers, it should return

Re: [Twisted-Python] Clarification on returning exceptions via Perspective Broker

2009-08-13 Thread Glyph Lefkowitz
On Thu, Aug 13, 2009 at 10:32 AM, Matt Bennett wrote: > My exceptions subclass pb.Error, which means tracebacks are suppressed > on the server and errbacks triggered on the client, exactly as I'd > hoped. What I'm confused about though, is why the > serialization/deserialization process reduces m

Re: [Twisted-Python] twisted.positioning: progress report + Factory question

2009-08-14 Thread Glyph Lefkowitz
On Thu, Aug 13, 2009 at 7:01 PM, Laurens Van Houtven wrote: > On Thu, Aug 13, 2009 at 9:35 PM, Glyph Lefkowitz wrote: > >> Short question up front: what exactly should be in the proposed > >> factory class? What does it take? What does it return? > > > > > Fa

Re: [Twisted-Python] Documentation

2009-08-14 Thread Glyph Lefkowitz
On Wed, Aug 12, 2009 at 6:41 AM, John Aherne wrote: > I appreciate it it was a bit confused, but I wanted to get it out sooner > rather than later and just get the basic facts confirmed. > Yes, it's always good to share these early drafts. > So I will start putting my thoughts into better sha

Re: [Twisted-Python] Happy Twisted User

2009-08-17 Thread Glyph Lefkowitz
On Mon, Aug 17, 2009 at 1:27 PM, Reza Lotun wrote: > Forgive this random spammy shoutout - but I work for TweetDeck (a > real-time web client offering), and we're happy users of Twisted for > our backend. More specifically we use it to handle our account signups > and syncing of client informati

Re: [Twisted-Python] Happy Twisted User

2009-08-17 Thread Glyph Lefkowitz
On Mon, Aug 17, 2009 at 3:04 PM, Reza Lotun wrote: > Hi Glyph, > > > As a matter of fact I already use TweetDeck! I'm happy to hear it uses > > Twisted :). > > That's great news! > Don't get too excited. Now I know I can blame you when it breaks! ;-) > If you're happy users, perhaps you'd lik

Re: [Twisted-Python] Twistd .tac + wxpython

2009-08-20 Thread Glyph Lefkowitz
Hi Gabriel, On Thu, Aug 20, 2009 at 5:20 AM, Gabriel Rossetti < gabriel.rosse...@arimaz.com> wrote: > I thought > of maybe putting the wx mainloop in a thread and using the standard > reactor but I don't know how well this works or even if it's possible. > If you've already got all the appropria

Re: [Twisted-Python] exarkun changed [#3974 - reader/writer interface docs incomplete]

2009-08-25 Thread Glyph Lefkowitz
-- Apologies for any cryptic brevity or errors, this was sent from a mobile device. On Aug 25, 2009 8:20 AM, wrote: Ticket [#3974 - reader/writer interface docs incomplete] changed by exarkun : #3980 was a duplicate of this. - - http://twistedmatrix.com/trac/ticket/3974 _

Re: [Twisted-Python] deciding to use twisted or not

2009-08-26 Thread Glyph Lefkowitz
On Wed, Aug 26, 2009 at 4:56 PM, Martin-Louis Bright wrote: > I would like to write a small daemon that monitors (tails) a server log, > parses the entries and sends HTTP requests based on some of those entries. I > would like it if the reading of the log file and the sending of http > requests we

Re: [Twisted-Python] deciding to use twisted or not

2009-08-26 Thread Glyph Lefkowitz
On Wed, Aug 26, 2009 at 9:54 PM, Cary Hull wrote: > It would certainly be nice if Twisted supported async file io, but in this > case wouldn't a ProcessProtocol around 'tail -f' be a good solution as well? > That could work, but there are a few potential issues. 'tail' does slightly different s

Re: [Twisted-Python] twisted windows service

2009-08-29 Thread Glyph Lefkowitz
On Sat, Aug 29, 2009 at 2:52 AM, 头太晕 wrote: > 看你的名字,我认为我写中文你应该能看懂。 > 我给你段可以通用的代码吧。 > 这是正确的,但在这个名单很多人(包括我自己在内)无法读取中。 在未来,请为我们其他人的利益,在英国的职位。 不过,我们很高兴地看到,扭曲了中国的用户! :) (谢谢你,谷歌翻译。我很抱歉,如果这无法真正为在中国的感觉。) ___ Twisted-Python mailing list Twisted-Python@twist

Re: [Twisted-Python] network server on multiprocessor hardware

2009-09-04 Thread Glyph Lefkowitz
On Fri, Sep 4, 2009 at 4:59 PM, Bokhan Artem wrote: > Hello. > > Is there right (standard) way to write twisted network server > (tcp/web/mail/etc) which could use several cpu cores? For example, > master+workers model, where every worker doing the same job. > If so, may somebody help to wrap the

Re: [Twisted-Python] Twisted on Jython

2009-09-08 Thread Glyph Lefkowitz
On Tue, Sep 8, 2009 at 6:05 AM, Teemu Harju wrote: > Hi, > Hi, Teemu. > I've been trying to get Twisted working on Jython and haven't been > successful yet. I've seen that there are some bugs still on Jython or > Twisted side. What I'd like to know is that is it currently possible somehow > ge

[Twisted-Python] new contributors

2009-09-10 Thread Glyph Lefkowitz
We *still* don't have a totally official process for adding new contributors to SVN, but I've been noticing a steady stream of contributions from two new folks: lvh and jesstess. Would you folks like commit access? If so, does anyone have an objection on adding them to the Twisted Matrix Labs? (

Re: [Twisted-Python] new contributors

2009-09-11 Thread Glyph Lefkowitz
On Fri, Sep 11, 2009 at 10:35 AM, wrote: > I don't see any reason not to, and I doubt anyone mailed you off-list > about it. :) Indeed not. Everybody loves new core developers! > So if lvh and jesstess want to send me their SSH public > keys, I'll set it up. > Laurens' keys are already here

Re: [Twisted-Python] Boston Twisted Sprint

2009-09-22 Thread Glyph Lefkowitz
On Sun, Sep 20, 2009 at 11:33 PM, Christopher Armstrong < ra...@twistedmatrix.com> wrote: > On Sun, Sep 20, 2009 at 10:09 PM, Jessica McKellar > wrote: > > I'm cool with that if you're cool with that. Are you cool with that? > Please > > send me an e-mail off-list with: > I'm sending my reply on

Re: [Twisted-Python] Knowing end of packet

2009-09-28 Thread Glyph Lefkowitz
On Mon, Sep 28, 2009 at 7:15 AM, gary clark wrote: > Hello, > > I am sending a large amount of data to a twisted server. I want to know how > the protocol class knows that no more data is to be received. > > I dont pass the length of the data in the packet, hence I'm looking for a > termination f

Re: [Twisted-Python] getPeer() inside conch

2009-09-28 Thread Glyph Lefkowitz
On Mon, Sep 28, 2009 at 8:10 PM, Benjamin Rutt wrote: > But, it seems the recvline.HistoricRecvLine class wants me to use > self.terminal rather than self.transport to talk to the client. That's > fine, but it seems that self.terminal lacks a getPeer() method. How do I > find out the IP addres

Re: [Twisted-Python] getPeer() inside conch

2009-09-29 Thread Glyph Lefkowitz
On Tue, Sep 29, 2009 at 7:16 PM, Benjamin Rutt wrote: > The code: > > print 'hello, peer %s' % (self.terminal.transport.getPeer()) > > Fails with: > > AttributeError: SSHSessionProcessProtocol instance has no attribute > 'getPeer' > Oops. Looks like my reading of the code was wrong. On

Re: [Twisted-Python] I found an interisting comment about Twisted vs. Erlang

2009-09-30 Thread Glyph Lefkowitz
On Wed, Sep 30, 2009 at 4:00 PM, Alec Matusis wrote: > The biggest advantage of Twisted is a shorter development time, and the > availability of Python libraries. But I wonder if running something of the > scale of Facebook chat would be feasible at all, or if there are people on > this list tha

Re: [Twisted-Python] Twisted and db table changes

2009-10-01 Thread Glyph Lefkowitz
On Thu, Oct 1, 2009 at 4:27 PM, Steve wrote: > If you are using PostgreSQL you can use this technique > > http://www.divillo.com > > This is very interesting, thanks for sharing! However, whenever I see a Twisted program calling select()... especially select() in a thread ;-) I wonder if things

Re: [Twisted-Python] Use of 'twistd' utility with command-line arguments

2009-10-01 Thread Glyph Lefkowitz
On Thu, Oct 1, 2009 at 2:17 PM, Valeriy Pogrebitskiy wrote: > I came across some problem using 'twistd' utility - that I would not have > expected from it. The problem is - using 'twistd' to start application that > requires command-line arguments. In other words, I would expect that > 'twistd' pa

Re: [Twisted-Python] Twisted and db table changes

2009-10-01 Thread Glyph Lefkowitz
On Thu, Oct 1, 2009 at 5:49 PM, Steve wrote: > Thanks for the suggestion. I will look into replacing select but first I > need to learn more about Twisted. I just discovered it a week or so ago. > In that case, welcome! Probably the best route for you to take suggestions on making a ... shall w

Re: [Twisted-Python] getPeer() inside conch

2009-10-01 Thread Glyph Lefkowitz
On Thu, Oct 1, 2009 at 10:21 PM, Benjamin Rutt wrote: > (A/B) it looks like the SSHChannel implementation of getPeer() is faulty. > If I change my two-line implementation of getPeer() inside > SSHSessionProcessProtocol to simply 'return self.session.getPeer()', I get: > > File > "/home/ruttbe/d

Re: [Twisted-Python] twisted python usage

2009-10-02 Thread Glyph Lefkowitz
On Fri, Oct 2, 2009 at 12:47 PM, wrote: > hi, > Hi, Vitaly! > I'm trying to accomplish to work couple of CLI commands without luck. > > http://twistedmatrix.com/projects/core/documentation/howto/options.htmland > test/test_usage.py were not really helpful. > Why weren't these helpful? To m

Re: [Twisted-Python] Use of 'twistd' utility with command-line arguments

2009-10-02 Thread Glyph Lefkowitz
On Fri, Oct 2, 2009 at 12:14 PM, Valeriy Pogrebitskiy wrote: > Something can be done about that. One possible approach could be to use two > argument lists (one - 'twistd' arguments, second - application's arguments) > and enforce following rule(s): > As Jean-Paul mentioned, there is a ticket wh

Re: [Twisted-Python] twisted python usage

2009-10-02 Thread Glyph Lefkowitz
On Fri, Oct 2, 2009 at 2:18 PM, wrote: > > bingo! thank you guys a lot! it was all about 'repr(self['module'])'. > Great! > Glyph, sorry man, did mean to hurt and shit on twisted: personally and > professionally I think its a VERY professional framework, and I'm > using it about a year. > Did

Re: [Twisted-Python] Boston Twisted Sprint

2009-10-02 Thread Glyph Lefkowitz
On Sun, Sep 20, 2009 at 10:09 PM, Jessica McKellar < jessica.mckel...@gmail.com> wrote: > The proposal was for a sprint in Boston from September 28-October 2. That > starts a week from today. > ... and they end today. This was a pretty small sprint, but I still think it has been a success. It m

Re: [Twisted-Python] Structural issues in Lore XHTML documents

2009-10-05 Thread Glyph Lefkowitz
On Mon, Oct 5, 2009 at 12:22 PM, Kevin Horn wrote: > I've been looking over the xhtml documents used to generate the twisted > documentation, and I've noticed a number of issues: > Are these issues really affecting you in some way? > I'm planning to correct some of these issues, but I wanted t

Re: [Twisted-Python] getting #2015 (Generic SASL library) moving again?

2009-10-05 Thread Glyph Lefkowitz
On Mon, Oct 5, 2009 at 12:34 PM, Kevin Horn wrote: > I'd like to see this ticket get moving again. Excellent! > I've gone over what's been done so far (and put my comments in the ticket), > and it looks like everything is at least mostly ready to be merged into the > Twisted trunk. > Your an

Re: [Twisted-Python] Lots and lots and lots and lots... of deferreds

2009-10-06 Thread Glyph Lefkowitz
On Tue, Oct 6, 2009 at 10:40 PM, Steve Steiner (listsin) < list...@integrateddevcorp.com> wrote: >Should I limit the number of "in-flight" pages? > I'm not going to comment on that, because I don't know what your app is doing or why it appears to be dying. As you said, you didn't post c

Re: [Twisted-Python] Example of a long-polling asynchronous web servic?

2009-10-06 Thread Glyph Lefkowitz
On Tue, Oct 6, 2009 at 11:30 PM, Stephen Mattison wrote: > How can I implement this in Twisted? > You can use DeferredResource: http://twistedmatrix.com/documents/8.2.0/api/twisted.web.util.DeferredResource.html or you can return NOT_DONE_YET from Resource.render(), and hold on to the reques

Re: [Twisted-Python] using perspective broker to talk to a subprocess?

2009-10-06 Thread Glyph Lefkowitz
On Tue, Oct 6, 2009 at 11:18 PM, Ryan Burns wrote: > Disregarding reasons of why I would want to do this, is this something > that is possible? Absolutely. Here's an example that uses AMP rather than PB: https://launchpad.net/ampoule If AMP is OK, you can just use Ampoule as-is; if not,

Re: [Twisted-Python] sleeping in inlineCallbacks

2009-10-07 Thread Glyph Lefkowitz
On Wed, Oct 7, 2009 at 11:08 PM, Mikhail Terekhov wrote: > > What about Deferred.setTimeout? > http://twistedmatrix.com/documents/current/api/twisted.internet.defer.Deferred.html#setTimeout > IMHO it solves similar problem. > Deferred.setTimeout does something else. More importantly, it is depr

Re: [Twisted-Python] Disturbing aspect of zope.interface

2009-10-08 Thread Glyph Lefkowitz
On Thu, Oct 8, 2009 at 7:23 PM, Brian Granger wrote: > I know this is not the zope list > You're right, it's not. Perhaps you could send a message to the interface package development list? https://mail.zope.org/mailman/listinfo/interface-dev The disturbing thing is that now A (which is ju

Re: [Twisted-Python] Phasing out old-style classes

2009-10-08 Thread Glyph Lefkowitz
On Thu, Oct 8, 2009 at 7:59 PM, Mark Visser wrote: > Is there a project underway to modernize twisted? > Yes. The project is called "twisted" :). Personally I find that it is very "modern". I've been bitten a couple times by twisted's use of old-style classes. > Now that Jython is finally off

Re: [Twisted-Python] HTTPClientFactory's deferred never finishing download on .vcf (vcard file) link

2009-10-10 Thread Glyph Lefkowitz
On Sat, Oct 10, 2009 at 2:22 AM, Steve Steiner (listsin) < list...@integrateddevcorp.com> wrote: > > Just realized that that was off-twistedmatrix, same doc at: > > > http://twistedmatrix.com/documents/8.2.0/api/twisted.web.http.Request.html > > so it's not some off-site weirdness... > What "weird

Re: [Twisted-Python] reactor.run() do not return after reactor.stop()

2009-10-10 Thread Glyph Lefkowitz
On Sat, Oct 10, 2009 at 12:50 PM, Stanislav Yudin wrote: > Thanks, but how can I pass control back to calling code after starting the > reactor? Or the idea is to run it in separate thread? I understand that main > idea on twisted is async processing, but this time I need to block the > calling c

Re: [Twisted-Python] HTTPClientFactory's deferred never finishing download on .vcf (vcard file) link

2009-10-10 Thread Glyph Lefkowitz
On Sat, Oct 10, 2009 at 11:56 AM, Steve Steiner (listsin) < list...@integrateddevcorp.com> wrote: > > On Oct 10, 2009, at 3:18 AM, Glyph Lefkowitz wrote: > > What "weirdness" are you referring to? > > I was just referring to the fact that the original document

Re: [Twisted-Python] How to find out if exceptions are being raised in your errBack?

2009-10-13 Thread Glyph Lefkowitz
On Tue, Oct 13, 2009 at 8:02 PM, Steve Steiner (listsin) < list...@integrateddevcorp.com> wrote: > I've been hunting down a problem that I've finally found the cause of > and I'd like to know what's the Twisted way to catch this "error > within the code handling the error" type of error. > The r

Re: [Twisted-Python] How to find out if exceptions are being raised in your errBack?

2009-10-14 Thread Glyph Lefkowitz
On Wed, Oct 14, 2009 at 4:43 AM, Steve Steiner (listsin) < list...@integrateddevcorp.com> wrote: > > On Oct 14, 2009, at 2:07 AM, Glyph Lefkowitz wrote: > > Yes, we're working on it but it's a large code base and we started with > exactly zero tests. Whil

Re: [Twisted-Python] Conferences / training?

2009-10-21 Thread Glyph Lefkowitz
On Oct 18, 2009, at 10:29 PM, Nathan wrote: Does anyone do any "formal" Twisted training? Steve Holden does excellent Python training and you might be able to get him to prepare some Twisted materials, especially with your lengthy time-horizon. His "Teach Me Twisted" session at PyCon a fe

Re: [Twisted-Python] NAT / firewall facilities

2009-10-21 Thread Glyph Lefkowitz
On Oct 21, 2009, at 8:56 AM, Florent Chuffart wrote: > I'm evaluating twisted framework according to my needs and I want to > know if twisted provide some NAT / firewall facilities allowing > automatic routed communication or reverse connection establishment ? Not directly, but you can find a lib

Re: [Twisted-Python] Conferences / training?

2009-10-21 Thread Glyph Lefkowitz
On Oct 21, 2009, at 6:40 AM, Laurens Van Houtven wrote: > Maybe I ought to talk to Steve Holden about it -- but since he makes > money giving those presentation, I can understand that he wouldn't be > very interested in spending a lot of time producing free material ;-) Steve is also a big suppo

Re: [Twisted-Python] porting to 3.0

2009-10-22 Thread Glyph Lefkowitz
On Thu, Oct 22, 2009 at 10:38 AM, Sorin Silaghi wrote: > so basically just pick up the warnings list, start fixing them and > submit the patches right ? ... shiny. I can give that a try. Thanks! I look forward to seeing your patches :-D. ___ Twisted-

Re: [Twisted-Python] Twisted Performance

2009-10-24 Thread Glyph Lefkowitz
On Oct 24, 2009, at 3:47 PM, Daniel Griffin wrote: > I ported my thread based socket code to twisted and have been happy > with my results. (...) > Basically its a huge win on every level. > > Thanks for all the help everyone. Glad to hear it! Do you want to write up something more specific fo

Re: [Twisted-Python] Phasing out old-style classes

2009-10-24 Thread Glyph Lefkowitz
On Oct 24, 2009, at 10:50 AM, exar...@twistedmatrix.com wrote: I think that we should consider requests to make specific classes new- style (and grant them when doing so won't cause compatibility problems), make all new classes new-style, but otherwise leave this alone until 3.x is widely a

Re: [Twisted-Python] Phasing out old-style classes

2009-10-24 Thread Glyph Lefkowitz
On Oct 25, 2009, at 1:50 AM, James Y Knight wrote: On Oct 25, 2009, at 1:38 AM, Glyph Lefkowitz wrote: What do you do? Well, the obvious upgrade path here is to make a class which (A) inherits from "Library" to get Twisted functionality and (B) inherits from "object&qu

Re: [Twisted-Python] getting #2015 (Generic SASL library) moving again?

2009-10-26 Thread Glyph Lefkowitz
On Oct 26, 2009, at 5:11 PM, Kevin Horn wrote: > FYI, this ticket back up for review... Thanks! Sorry about the review backlog; the core committers have all been pretty busy lately. I'll try to get to this soon. ___ Twisted-Python mailing list Twi

Re: [Twisted-Python] sleeping in inlineCallbacks

2009-10-29 Thread Glyph Lefkowitz
Hi Brian, In general, please reply on this list inline, with quoting and trimming, like so: http://en.wikipedia.org/wiki/Posting_style#Inline_replying This might seem like a minor thing, but it really helps those of us who have to follow long discussions and many mailing lists. Now,

Re: [Twisted-Python] Using a custom reactor in twisted trial for test cases?

2009-11-01 Thread Glyph Lefkowitz
On Nov 1, 2009, at 11:17 PM, Crispin Wellington wrote: > On Fri, 2009-10-30 at 14:06 +, exar...@twistedmatrix.com wrote: >> It looks like your custom reactor is mainly in charge of making sure >> stackless.schedule() gets called at least once every 0.1 seconds. Is >> that right? If so, a muc

Re: [Twisted-Python] Connect to an IRC server, modules.

2009-11-03 Thread Glyph Lefkowitz
On Nov 2, 2009, at 9:24 AM, Alberto Piu wrote: > first of all, I apologize for bad english. I am new with Twisted, and > although it seems very powerful, I'm having some problems in using it. > I'm trying to create an IRC bot, which basically does nothing. My idea > is to write a skeleton that's

Re: [Twisted-Python] Twisted 9, do you want it

2009-11-05 Thread Glyph Lefkowitz
On Thu, Nov 5, 2009 at 11:00 PM, Christopher Armstrong < ra...@twistedmatrix.com> wrote: > Subject: Twisted 9, do you want it YES > I'm working on it. The core NEWS file is done I think. NEWS for other > projects will be worked on tomorrow. > WOO __

Re: [Twisted-Python] Twisted 9, do you want it

2009-11-08 Thread Glyph Lefkowitz
On Nov 5, 2009, at 11:00 PM, Christopher Armstrong wrote: > I'm working on it. The core NEWS file is done I think. NEWS for other > projects will be worked on tomorrow. How's this coming along? ___ Twisted-Python mailing list Twisted-Python@twistedmat

Re: [Twisted-Python] Twisted web

2009-11-09 Thread Glyph Lefkowitz
On Nov 9, 2009, at 6:11 AM, Reza Lotun wrote: > You're probably talking about the web/web2 dichotomy? Take a look > at this page: > http://twistedmatrix.com/trac/wiki/WebDevelopmentWithTwisted > > In short, web2 is being phased out and web is *the* web project of > twisted (as it should be ;-)

Re: [Twisted-Python] Proposal (almost) to switch from Lore to Sphinx

2009-11-11 Thread Glyph Lefkowitz
On Nov 11, 2009, at 5:52 PM, Kevin Horn wrote: > Please let me know what you think. Initial reaction: awesome! I don't really care about the documentation format or tools, I'm just thrilled that someone is willing to step forward and maintain them in _any_ form. Secondary reaction: automated

Re: [Twisted-Python] Proposal (almost) to switch from Lore to Sphinx

2009-11-11 Thread Glyph Lefkowitz
On Nov 11, 2009, at 7:37 PM, Kevin Horn wrote: > On Wed, Nov 11, 2009 at 5:56 PM, Glyph Lefkowitz > wrote: > > On Nov 11, 2009, at 5:52 PM, Kevin Horn wrote: > > > Please let me know what you think. > > Initial reaction: awesome! > > Well, that's e

Re: [Twisted-Python] Proposal (almost) to switch from Lore to Sphinx

2009-11-17 Thread Glyph Lefkowitz
On Nov 16, 2009, at 5:37 PM, Kevin Horn wrote: > On Mon, Nov 16, 2009 at 3:11 PM, wrote: > On 06:09 pm, kevin.h...@gmail.com wrote: > >> > >er, sorry, forgot to post the link... > > > >here it is: > >http://twistedsphinx.funsize.net/ > > Thanks. It's good to be able to see (at least an early d

Re: [Twisted-Python] Proposal (almost) to switch from Lore to Sphinx

2009-11-17 Thread Glyph Lefkowitz
On Nov 17, 2009, at 3:58 PM, Laurens Van Houtven wrote: > Not to detract from any of the points you've made regarding reST's > table syntax, but I've found it to be quite livable-with using > table.el. Emacs users might be interested: > http://table.sourceforge.net/ Wow. Uh, erm. This does detr

Re: [Twisted-Python] Twisted 9.0.0 prerelease 1

2009-11-20 Thread Glyph Lefkowitz
On Nov 20, 2009, at 12:23 PM, Jonathan Lange wrote: > On Thu, Nov 19, 2009 at 9:13 PM, Christopher Armstrong > wrote: >> Hey guys. I've done an initial cut of Twisted 9. Please check out >> these tarballs and tell me whether or not you find any regressions or >> other release-related problems. >

Re: [Twisted-Python] Transfering a transport between DatagramProtocols

2009-11-24 Thread Glyph Lefkowitz
On Nov 24, 2009, at 4:26 PM, Olivier Parisy wrote: > Is this the "twisted" way to analyse this? Or should I use some kind of > "proxy" DatagramProtocol which would relay datagramReceived calls to the > proper DatagramProtocol, depending on the current protocol state > (handshaking or data excha

Re: [Twisted-Python] is there way to baypass value limit of 64kb in twisted.protocols.amp

2009-11-30 Thread Glyph Lefkowitz
On Nov 30, 2009, at 2:10 PM, MārisR wrote: > I'm currently trying to figure out, how to bypass amp value limit of 64kb. > First tought was to split string into chunks <64kb, then join before > processing. Problem is, how to dinamicaly generate amp.Command argument list. > Maybe there is other w

Re: [Twisted-Python] Lore to Sphinx Conversion Progress Report

2009-12-03 Thread Glyph Lefkowitz
On Dec 3, 2009, at 1:29 AM, Kevin Horn wrote: > On Wed, Dec 2, 2009 at 8:38 PM, wrote: > > As far as the (I'm going to call it) roadmap goes, the thought that's > pushed its way to the fore for me is that I'd like to try this with > something smaller and simpler than Twisted first. It would be

Re: [Twisted-Python] Lore to Sphinx Conversion Progress Report

2009-12-03 Thread Glyph Lefkowitz
On Dec 3, 2009, at 10:06 AM, exar...@twistedmatrix.com wrote: > I want some experience with Sphinx so that can verify the premise that > Sphinx is better than Lore. So, the experience isn't necessary for the > conversion, it's necessary for me to be comfortable that the conversion > is a good

Re: [Twisted-Python] Deferred on PyPI

2009-12-08 Thread Glyph Lefkowitz
On Dec 8, 2009, at 4:50 AM, Jonathan Lange wrote: > On Mon, Dec 7, 2009 at 10:35 AM, wrote: >> On 09:10 pm, j...@mumak.net wrote: >>> On Mon, Dec 7, 2009 at 6:29 AM, wrote: On 09:26 am, j...@mumak.net wrote: > > A while ago at EuroPython, Mikeal Rogers and I talked about Deferre

Re: [Twisted-Python] Deferred on PyPI

2009-12-09 Thread Glyph Lefkowitz
On Dec 9, 2009, at 3:27 AM, Jonathan Lange wrote: > On Wed, Dec 9, 2009 at 2:42 AM, Glyph Lefkowitz > wrote: >> but my agreement is contingent upon the theoretical existence of things like >> "a good package manager for Python" and "installation instructions

  1   2   3   4   5   6   7   8   9   10   >