[Twisted-Python] deprecate using paths with trial

2017-02-12 Thread Jean-Paul Calderone
Hello, Since trial has stopped adding the working directory to sys.path, it seems very sensible to also stop accepting paths as a way to specify what tests to run. Instead, only package, module, class, or test method names should be accepted. Please add your thoughts (reasoned arguments, not

Re: [Twisted-Python] Twisted 17.1 Release Announcement

2017-02-11 Thread Jean-Paul Calderone
On Sat, Feb 11, 2017 at 5:03 AM, Amber Hawkie Brown < hawk...@atleastfornow.net> wrote: > On behalf of Twisted Matrix Laboratories, I am honoured to announce the > release of Twisted 17.1! > > The highlights of this release are: > > - twisted.web.client.Agent now supports IPv6! It's also now the

Re: [Twisted-Python] SMTP: Authenticating on Outbound emails only

2017-02-09 Thread Jean-Paul Calderone
On Thu, Feb 9, 2017 at 12:29 PM, Anthony Lukach wrote: > I am working on putting together an SMTP server implemented within > Twisted. This will act as a conduit to my API, where there are two basic > flows: > > 1) A device that supports sending email can "send" an

Re: [Twisted-Python] "twistd" in Twisted 16.4.0 can't import modules/packages from current working directory

2017-02-07 Thread Jean-Paul Calderone
On Fri, Jan 13, 2017 at 1:13 AM, Glyph Lefkowitz wrote: > Thanks for highlighting those. I've put the link in the other direction > as well. > > Craig seems eager to go ahead with reverting this change in behavior.

Re: [Twisted-Python] web client FileBodyProducer - transfer encoding

2017-01-30 Thread Jean-Paul Calderone
On Mon, Jan 30, 2017 at 7:44 PM, Glyph Lefkowitz wrote: > Gotcha. I guess what I meant was that you shouldn't care about this at > the application level, but you're talking about an operational concern, not > an application-level concern. > > Perhaps this should be a

Re: [Twisted-Python] Can't create ticket in Trac

2017-01-27 Thread Jean-Paul Calderone
On Fri, Jan 27, 2017 at 7:25 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Jan 27, 2017, at 4:16 PM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > On Fri, Jan 27, 2017 at 7:09 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> > wrote:

Re: [Twisted-Python] Can't create ticket in Trac

2017-01-27 Thread Jean-Paul Calderone
On Fri, Jan 27, 2017 at 7:09 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Jan 27, 2017, at 3:53 PM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > > My browser is not using HTTP/2 to talk to twistedmatrix.com (idnar > sugg

Re: [Twisted-Python] Can't create ticket in Trac

2017-01-27 Thread Jean-Paul Calderone
On Fri, Jan 27, 2017 at 6:52 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Jan 27, 2017, at 3:49 PM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > On Fri, Jan 27, 2017 at 6:21 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> > wrote:

Re: [Twisted-Python] Can't create ticket in Trac

2017-01-27 Thread Jean-Paul Calderone
On Fri, Jan 27, 2017 at 6:21 PM, Glyph Lefkowitz wrote: > > On Jan 27, 2017, at 3:12 PM, Craig Rodrigues > wrote: > > > > On Fri, Jan 27, 2017 at 2:29 PM, Glyph Lefkowitz > wrote: > >> >> On Jan 27, 2017, at 2:03 PM,

Re: [Twisted-Python] Problems with inlineCallback, Deferred, yield and Python 3 in buildbot

2017-01-23 Thread Jean-Paul Calderone
On Mon, Jan 23, 2017 at 7:08 PM, Craig Rodrigues wrote: > > > On Sat, Jan 21, 2017 at 8:06 PM, Glyph Lefkowitz > wrote: > >> >> On Jan 21, 2017, at 6:15 PM, Craig Rodrigues >> wrote: >> >> If I run the test on Python 2, I

Re: [Twisted-Python] admin/pr_as_branch

2017-01-22 Thread Jean-Paul Calderone
On Sun, Jan 22, 2017 at 8:31 PM, Jean-Paul Calderone < exar...@twistedmatrix.com> wrote: > On Sun, Jan 22, 2017 at 8:28 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> > wrote: > >> >> On Jan 22, 2017, at 5:24 PM, Jean-Paul Calderone < >> exar...@twistedmat

Re: [Twisted-Python] admin/pr_as_branch

2017-01-22 Thread Jean-Paul Calderone
On Sun, Jan 22, 2017 at 8:28 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Jan 22, 2017, at 5:24 PM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > On Sun, Jan 22, 2017 at 8:19 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> > wrote:

Re: [Twisted-Python] admin/pr_as_branch

2017-01-22 Thread Jean-Paul Calderone
On Sun, Jan 22, 2017 at 8:19 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Jan 22, 2017, at 5:15 PM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > Hello, > > I didn't find any hints about the workflow surrounding the > admin

[Twisted-Python] admin/pr_as_branch

2017-01-22 Thread Jean-Paul Calderone
Hello, I didn't find any hints about the workflow surrounding the admin/pr_as_branch tool so I invented one and wrote it up on the wiki: https://twistedmatrix.com/trac/wiki/ReviewProcess?action=diff=76 Jean-Paul ___ Twisted-Python mailing list

Re: [Twisted-Python] Strange ImportError after switching from OS package to pip

2017-01-17 Thread Jean-Paul Calderone
On Tue, Jan 17, 2017 at 12:53 PM, Роман Мещеряков < romanmescherya...@yandex.ru> wrote: > *Hi everyone! The 14.0.2 version of Twisted is latest that is available > for Raspbian as a package, so until today I used it. I run my Twisted > application in the following way:* > > > *twistd -ny

Re: [Twisted-Python] "twistd" in Twisted 16.4.0 can't import modules/packages from current working directory

2017-01-12 Thread Jean-Paul Calderone
Note there is still some confusion over this matter. See < http://twistedmatrix.com/trac/ticket/8972>, < http://twistedmatrix.com/trac/ticket/8978>, and < https://github.com/twisted/twisted/pull/672>. Jean-Paul On Tue, Jan 3, 2017 at 3:24 PM, Jean-Paul Calderone < exar

Re: [Twisted-Python] Testing Strategies (was Re: Streaming Requests)

2017-01-12 Thread Jean-Paul Calderone
On Wed, Jan 11, 2017 at 11:41 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Jan 9, 2017, at 4:13 AM, Jean-Paul Calderone <exar...@twistedmatrix.com> > wrote: > > On Mon, Jan 9, 2017 at 4:52 AM, Glyph Lefkowitz <gl...@twistedmatrix.com> > wrote: &g

[Twisted-Python] Announcing txAWS 0.2.3.1

2017-01-09 Thread Jean-Paul Calderone
I've just release txAWS 0.2.3.1. txAWS is a library for interacting with Amazon Web Services (AWS) using Twisted. AWSServiceEndpoint's ssl_hostname_verification's parameter now defaults to True instead of False. This affects all txAWS APIs which issue requests to AWS endpoints. For any

Re: [Twisted-Python] Testing Strategies (was Re: Streaming Requests)

2017-01-09 Thread Jean-Paul Calderone
On Mon, Jan 9, 2017 at 4:52 AM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > On Jan 8, 2017, at 4:34 PM, Jean-Paul Calderone <exar...@twistedmatrix.com> > wrote: > > > Here's one example I know of off the top of my head, < > https://github.com/Scat

Re: [Twisted-Python] Streaming Requests

2017-01-08 Thread Jean-Paul Calderone
On Sun, Jan 8, 2017 at 1:44 AM, Mark Williams wrote: > * What? > A new year means renewed ambition. So let's talk about receiving > streaming requests! > > Hi Mark, Thanks for tackling this long-standing issue! I want to start off by responding to just one part of

Re: [Twisted-Python] "twistd" in Twisted 16.4.0 can't import modules/packages from current working directory

2017-01-05 Thread Jean-Paul Calderone
On Tue, Jan 3, 2017 at 3:22 PM, Amber "Hawkie" Brown < hawk...@atleastfornow.net> wrote: > > > We have, in the past, fixed up historic NEWS files in later releases (e.g. > the one which removed 2.6 support). We could always roll these changes into > a post1, but, that seems like a lot of effort.

Re: [Twisted-Python] "twistd" in Twisted 16.4.0 can't import modules/packages from current working directory

2017-01-02 Thread Jean-Paul Calderone
On Thu, Sep 1, 2016 at 11:36 AM, Amber "Hawkie" Brown < hawk...@atleastfornow.net> wrote: > > > On 1 Sep 2016, at 21:42, Yuri wrote: > > > > Hi all > > > > I couldn't find Twisted-specific group, so posting here. > > > > Recently Twisted 16.4.0 got released. Yesterday

[Twisted-Python] tx github announcements in #twisted-dev

2017-01-02 Thread Jean-Paul Calderone
How do folks feel about this? Good idea or not? Jean-Paul ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twisted 16.7.0rc1 Release Candidate Announcement

2016-12-26 Thread Jean-Paul Calderone
On Fri, Dec 23, 2016 at 4:22 PM, Glyph Lefkowitz wrote: > > > It's merged now: https://twistedmatrix.com/trac/ticket/8911#comment:5 > > On a related note - this still linked the '#' syntax back to the ticket > number in Trac. > > Perhaps related - tomprince fixed the

[Twisted-Python] AWS Auth v4 for Twisted?

2016-12-25 Thread Jean-Paul Calderone
Seeking a library that implements this for use with txAWS. More details: https://stackoverflow.com/questions/41322251/is-there-an-aws-auth-v4-implementation-usable-with-a-twisted-friendly-http-clien Jean-Paul ___ Twisted-Python mailing list

Re: [Twisted-Python] trac deployment (was: memory leaks)

2016-12-06 Thread Jean-Paul Calderone
On Tue, Dec 6, 2016 at 12:54 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Dec 6, 2016, at 5:24 AM, Jean-Paul Calderone <exar...@twistedmatrix.com> > wrote: > > Is the braid trac service also fixed - or does the next person who tries > to update th

Re: [Twisted-Python] Spurious commit/ticket links

2016-12-06 Thread Jean-Paul Calderone
On Tue, Dec 6, 2016 at 1:08 AM, Glyph Lefkowitz wrote: > > Now I can't create tickets at all. I hope this is related and not just > general decay of our Trac instance :). > > The web UI tells me "Warning: The action "None" is not available" without > actually creating

Re: [Twisted-Python] Spurious commit/ticket links

2016-12-05 Thread Jean-Paul Calderone
On Sat, Dec 3, 2016 at 9:28 AM, Jean-Paul Calderone < exar...@twistedmatrix.com> wrote: > On Fri, Dec 2, 2016 at 9:28 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> > wrote: > >> > On Dec 2, 2016, at 4:49 PM, Jean-Paul Calderone < >> exar...@twisted

Re: [Twisted-Python] memory leaks

2016-12-04 Thread Jean-Paul Calderone
On Sun, Dec 4, 2016 at 12:50 AM, Glyph Lefkowitz wrote: > Following up on a Stack Overflow question from some time ago, > http://stackoverflow.com/questions/40604545/twisted- > using-connectprotocol-to-connect-endpoint-cause-memory-leak?noredirect=1# >

Re: [Twisted-Python] Spurious commit/ticket links

2016-12-03 Thread Jean-Paul Calderone
On Fri, Dec 2, 2016 at 9:28 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Dec 2, 2016, at 4:49 PM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > > > I deployed this to production. I don't see a good way to test it > without screw

Re: [Twisted-Python] Spurious commit/ticket links

2016-12-02 Thread Jean-Paul Calderone
I deployed this to production. I don't see a good way to test it without screwing around with twisted trunk ... so don't plan to. I'll keep an eye on real merges folks are working on and see if it's behaving as desired. On Thu, Dec 1, 2016 at 8:50 PM, Jean-Paul Calderone < e

Re: [Twisted-Python] Spurious commit/ticket links

2016-12-01 Thread Jean-Paul Calderone
On Thu, Dec 1, 2016 at 3:33 PM, Glyph Lefkowitz wrote: > > > Please be vocal about any roadblocks you hit. The ops situation has > improved a ton since the last time you looked, but (accordingly) it's also > changed almost completely. > > Good luck - and hopefully

Re: [Twisted-Python] Spurious commit/ticket links

2016-12-01 Thread Jean-Paul Calderone
On Thu, Dec 1, 2016 at 3:13 PM, Jean-Paul Calderone < exar...@twistedmatrix.com> wrote: > On Thu, Dec 1, 2016 at 2:14 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> > wrote: > >> >> On Dec 1, 2016, at 10:51 AM, Jean-Paul Calderone < >> exar...@twistedmatr

Re: [Twisted-Python] Spurious commit/ticket links

2016-12-01 Thread Jean-Paul Calderone
On Thu, Dec 1, 2016 at 2:14 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Dec 1, 2016, at 10:51 AM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > Hi, > > In the last couple days I've noticed that there are a bunch of spuriou

[Twisted-Python] Spurious commit/ticket links

2016-12-01 Thread Jean-Paul Calderone
Hi, In the last couple days I've noticed that there are a bunch of spurious changes being made to tickets in the issue tracker. These come from commit messages that reference a GitHub PR that happens to match a ticket number in trac. For example,

[Twisted-Python] Changeset links in trac

2016-11-21 Thread Jean-Paul Calderone
Hi, It looks like older links to changesets in trac are now broken. For example, https://twistedmatrix.com/trac/ticket/5236#comment:5 used to link to r33400 but the link is now just plain text. Is there a reason these links can't be restored? It was very convenient to have them for navigating

Re: [Twisted-Python] Some things I've learned: safer callbacks, better t.p.context

2016-10-19 Thread Jean-Paul Calderone
It's also possible to write a little bit of testing library code and get both versions of the test nearly for free. Unfortunately, I very rarely see test suites written that way. I think many people don't realize there are two cases to handle or believe testing both cases is too expensive for

Re: [Twisted-Python] How do you determine the buffer size of a transport - a use-case for not using back pressure

2016-08-19 Thread Jean-Paul Calderone
There are at least two buffers (per direction) you might be interested in. You can get the kernel buffer size with getsockopt - SO_SNDBUF and SO_RCVBUF. Then, there may also be a user-space buffer (or perhaps more than one) managed by the transport implementation. The details of this are

Re: [Twisted-Python] Waiting time for tests running on Travis CI and Buildbot

2016-08-16 Thread Jean-Paul Calderone
On Mon, Aug 15, 2016 at 7:03 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Aug 15, 2016, at 2:11 PM, Jean-Paul Calderone < > exar...@twistedmatrix.com> wrote: > > On Mon, Aug 15, 2016 at 4:38 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> > wro

Re: [Twisted-Python] Waiting time for tests running on Travis CI and Buildbot

2016-08-15 Thread Jean-Paul Calderone
On Mon, Aug 15, 2016 at 4:38 PM, Glyph Lefkowitz wrote: There's a lot that we can do to make Travis almost that fast, with pre-built Docker images and cached dependencies. We haven't done much in the way of aggressive optimization yet. As recently discussed we're still

Re: [Twisted-Python] Waiting time for tests running on Travis CI and Buildbot

2016-08-15 Thread Jean-Paul Calderone
On Sun, Aug 14, 2016 at 7:10 PM, Glyph Lefkowitz wrote: > > > On Aug 14, 2016, at 3:38 AM, Adi Roiban wrote: > > > > If you think that we can raise $6000 per year for sponsoring our > > Travis-CI and that is worth increasing the queue size I can follow

Re: [Twisted-Python] Coverage exceptions

2016-06-30 Thread Jean-Paul Calderone
On Thu, Jun 30, 2016 at 6:25 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Jun 30, 2016, at 04:13, Jean-Paul Calderone <exar...@twistedmatrix.com> > wrote: > > On Thu, Jun 30, 2016 at 6:43 AM, Adi Roiban <a...@roiban.ro> wrote: > >> Hi, >

Re: [Twisted-Python] Coverage exceptions

2016-06-30 Thread Jean-Paul Calderone
On Thu, Jun 30, 2016 at 6:43 AM, Adi Roiban wrote: > Hi, > > Recently we have introduced a hard check of 100% coverage for all changes. > This is done via coverage + codecov + github protected branches. > > Now, if your patch is not 100% covered github will not let you merge it.

Re: [Twisted-Python] twisted listening on UDP port, why?

2016-04-20 Thread Jean-Paul Calderone
Hi, What do the logs for the app say? Twisted logs a message when it binds a UDP port. Or, another though, you could put a breakpoint on listenUDP (or socket.bind or something) and then run the process under pdb and look at the stack trace. You could also try sending some traffic to the port

Re: [Twisted-Python] Questions about adding documentation

2009-07-31 Thread Jean-Paul Calderone
On Fri, 31 Jul 2009 11:55:08 -0500, Kevin Horn kevin.h...@gmail.com wrote: [snip] I'd love to see a documentation reboot using Sphinx, but not if it's going to be a half-baked, never-finished project. [snip] I'd also be interested in hearing the opinions of some of the core Twisted guys on

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

2009-07-27 Thread Jean-Paul Calderone
On Mon, 27 Jul 2009 20:41:42 -0400, Glyph Lefkowitz gl...@twistedmatrix.com wrote: On Mon, Jul 27, 2009 at 10:34 AM, Vishal Shetye vishalshe...@gmail.comwrote: I had posted a query about laxdb on this list http://twistedmatrix.com/pipermail/twisted-python/2009-July/020030.html laxdb code is

Re: [Twisted-Python] Incorrect Another twistd server is running...

2009-07-21 Thread Jean-Paul Calderone
On Wed, 22 Jul 2009 00:41:20 +0200, Simone Deponti shywolf9...@gmail.com wrote: On 07/21/2009 07:10 PM, Christopher Armstrong wrote: It's not necessarily a twistd process. It could be any process with the same pid. checkPID only checks to see if the pid exists, not that it's the PID of a twistd

Re: [Twisted-Python] Problem with twisted.names.client.lookupPointer

2009-07-19 Thread Jean-Paul Calderone
On Sun, 19 Jul 2009 06:34:21 +0100, Kieran Simkin kie...@digital-crocus.com wrote: Hi there, I'm trying to do some reverse DNS lookups with twisted and I don't seem to be able to get even the most simple of test cases to work. I've tried it on a couple of different installations with the same

Re: [Twisted-Python] Cancel/stop Deferred() at any time

2009-07-14 Thread Jean-Paul Calderone
On Tue, 14 Jul 2009 11:10:10 -0400, vit...@synapticvision.com wrote: Hello, is there any way to cancel the Deferred callback in those examples? 1. d = defer.Deferred() d.addCallback(methodA).addErrback(methodErr) d.callback(None) 2. d = methodB().addErrback(methodErr) wfd =

Re: [Twisted-Python] imap and noop

2009-07-08 Thread Jean-Paul Calderone
On Wed, 08 Jul 2009 15:33:49 +0100, Darren Syzling dsyzl...@gmail.com wrote: I'm new to twisted and was experimenting trying to create an imap server based on the example within Twisted Network Programming Essentials. My test client is Thunderbird. I'm wondering if anyone has had any experience

Re: [Twisted-Python] Failed to load application: cannot import name app

2009-07-07 Thread Jean-Paul Calderone
On Tue, 7 Jul 2009 17:20:41 +0200, Jesper Taxbøl jes...@taxboel.dk wrote: Hi Guys, I stumpled upon a small dns filter program, that I am having trouble running, due to twisted.internet.app being deprecated. I get the following output Failed to load application: cannot import name app Im running

Re: [Twisted-Python] sudo asking for a password during utils.getProcessOutputAndValue()

2009-07-07 Thread Jean-Paul Calderone
On Tue, 07 Jul 2009 15:06:49 -0700, Steve Freitas sfl...@ihonk.com wrote: Hi Maarten, On Tue, 2009-07-07 at 23:46 +0200, Maarten ter Huurne wrote: Did you try args=('blah', 'blah')? Ah ha! That did it. Wonder why that works. I suppose your sudoers configuration file wasn't recognizing the

Re: [Twisted-Python] (Mis)indented Posts (list administrativia)

2009-07-03 Thread Jean-Paul Calderone
On Fri, 3 Jul 2009 10:32:07 -0400, Gerrat Rickert grick...@coldstorage.com wrote: ...ok, I've created a new post twice on this list twice, and both times my post has been indented and placed under a completely different/irrelevant post Here:

Re: [Twisted-Python] http.Request and JSON

2009-06-30 Thread Jean-Paul Calderone
On Tue, 30 Jun 2009 13:12:05 +0100, Reza Lotun rlo...@gmail.com wrote: Hi, On Tue, Jun 30, 2009 at 12:56 PM, Tristan Seligmannmithra...@mithrandi.net wrote: To be safer, I do a request.content.getvalue() since content is a cStringIO object and you can never be sure if somewhere along the chain

Re: [Twisted-Python] How to disable XMLRPC logging

2009-06-24 Thread Jean-Paul Calderone
On Wed, 24 Jun 2009 16:53:58 -0500, Dustin Land revenantst...@gmail.com wrote: Greetings! Currently I'm running two daemons that talk to each other over xmlrpc. One runs an implementation of internet.TCPServer with an xmlrpc.XMLRPC handler. The other simply uses web.xmlrpc.Proxy. In the logs for

Re: [Twisted-Python] SIP Registrar

2009-06-22 Thread Jean-Paul Calderone
On Mon, 22 Jun 2009 15:23:28 +0200, Guenter Dannoritzer tvmrfusnu...@spammotel.com wrote: Hi, I am trying to run a SIP registrar. So far I used an example that comes with the Perl Net:Sip Package: http://search.cpan.org/~sullr/Net-SIP/ As I am more familiar with Python, but not yet with

Re: [Twisted-Python] Dropin.cache errors after clean install of twisted-8.2.0

2009-06-17 Thread Jean-Paul Calderone
On Wed, 17 Jun 2009 14:37:01 -0700, Alex Clemesha cleme...@gmail.com wrote: On Wed, Jun 17, 2009 at 1:41 PM, Alex Clemeshacleme...@gmail.com wrote: Hi, Just type sudo twistd and the errors will go away. (You may already know of this work-around)  I agree with you that it would be nice for

Re: [Twisted-Python] can addCallback accept list of deferreds?

2009-06-16 Thread Jean-Paul Calderone
On Tue, 16 Jun 2009 13:23:17 +0200, Pet petshm...@googlemail.com wrote: Hi, I'm trying to process several items in callback function writeLog d.addCallback(self.writeLog,g=g) see below. Can writeLog return DeferredList instead of Deferred? Yes, it can. Deferred and DeferredList are

Re: [Twisted-Python] SerialPort.loseConnection() BUG

2009-06-13 Thread Jean-Paul Calderone
On Sat, 13 Jun 2009 22:26:48 +0100, James Mansion ja...@mansionfamily.plus.com wrote: gl...@divmod.com wrote: Since I'm seeing more and more messages where someone is top-posting, I think it might be helpful if we sent a more specific example of a You could try not being anal about it. In 2

Re: [Twisted-Python] SerialPort.loseConnection() BUG

2009-06-10 Thread Jean-Paul Calderone
On Wed, 10 Jun 2009 11:20:15 +0800, biziap biziap fet...@gmail.com wrote: Please don't top-post. Maybe you can try to call transport.flushInput(), transport.flushOutput() before loseConnection(). No, this is wrong. Do not call these methods, ever. 2009/6/9 Nestor A. Diaz

Re: [Twisted-Python] stop conditions and deferToThread()

2009-06-10 Thread Jean-Paul Calderone
On Wed, 10 Jun 2009 12:04:16 +0200, Thomas Jakobsen thomas.jakob...@alexandra.dk wrote: Hi As discussed in a previous thread http://twistedmatrix.com/pipermail/twisted-python/2009-May/019717.html a task put in its own thread via deferToThread() won't stop even though the reactor has

Re: [Twisted-Python] Question about a custom byte oriented TCP protocol

2009-06-02 Thread Jean-Paul Calderone
On Tue, 2 Jun 2009 16:09:00 +0100, Michael Thompson michae...@gmail.com wrote: Hi, I'm trying to use twisted to talk to an existing system that uses a byte oriented protocol stuffed inside a TCP packet. I have implemented this using the IntNStringReceiver modified to look at some bytes to

Re: [Twisted-Python] wxreactor and win32eventreactor

2009-06-02 Thread Jean-Paul Calderone
On Tue, 2 Jun 2009 11:07:38 -0500, Ryan Nowakowski tuba...@fattuba.com wrote: I'm trying to use twisted's SerialPort stuff in my Win32 wxPython app. I'm using the wxreactor, however I'm getting this error: AttributeError: 'WxReactor' object has no attribute 'addEvent' Indeed, as you've

Re: [Twisted-Python] Twisted Question

2009-05-31 Thread Jean-Paul Calderone
On Sun, 31 May 2009 19:12:56 -0400, Brandon McGinty brandon.mcgi...@gmail.com wrote: I'll give that a shot...unfortunately, the data is only accessible via an irc server and protocol. Hopefully I can gleen some useful information about cross-protocol communication by lokng at the source.

Re: [Twisted-Python] ESMTP extension

2009-05-30 Thread Jean-Paul Calderone
On Fri, 29 May 2009 21:08:59 -0500, Nicolas Toper nto...@gmail.com wrote: No problem, just DIGEST-MD5. No need for PLAIN or LOGIN? I think it handles PLAIN and LOGIN already (and CRAM-MD5). Maybe we're not talking about the same API? I was thinking about the ESMTP server. Jean-Paul

Re: [Twisted-Python] buildProtocol never called

2009-05-30 Thread Jean-Paul Calderone
On Sat, 30 May 2009 18:36:16 -0500, travis+ml-twis...@subspacefield.org wrote: On Sat, May 30, 2009 at 06:17:54PM -0500, travis+ml-twis...@subspacefield.org wrote: The program works fine normally, and can run in the background, but if I invoke a daemonize() routine that turns it into a network

Re: [Twisted-Python] ESMTP extension

2009-05-29 Thread Jean-Paul Calderone
On Fri, 29 May 2009 01:00:05 -0500, Nicolas Toper nto...@gmail.com wrote: Hi, I am using SMTP-AUTH with Twisted. I have extended smtp.mail to handle LOGIN and PLAIN on the server side (the version I have handles only CRAM-MD5). I am adding currently DIGEST-MD5. Do you want a patch? If yes, what

Re: [Twisted-Python] reactor.stop() and deferToThead

2009-05-29 Thread Jean-Paul Calderone
On Fri, 29 May 2009 14:22:43 +0200, Thomas Jakobsen thomas.jakob...@alexandra.dk wrote: Hi It seems that things being deferredToThread continue to run even though reactor.stop() is called. Threads cannot be interrupted. They will run until they function they are running returns. Output from

Re: [Twisted-Python] Twisted protocol as Django data source

2009-05-27 Thread Jean-Paul Calderone
On Wed, 27 May 2009 14:39:45 -0400, Dan charn...@muohio.edu wrote: Hi all, I have an application written in Twisted which multiplexes data from a variety of pieces of specialized hardware, and I'd like to make the live stream of this information viewable through a webpage. Unfortunately, on our

Re: [Twisted-Python] First time install of Twisted fails

2009-05-20 Thread Jean-Paul Calderone
On Wed, 20 May 2009 09:12:28 -0500, Uncle Roastie roas...@rochester.rr.com wrote: I'm trying to do an install of Twisted for Python 2.5.4 on Windows XP. I installed PyCrypto, OpenSSL for Windows, and PyOpenSLL. When I enter the Python interpreter and say import OpenSLL I get the following

Re: [Twisted-Python] offer of adding IRCD support to words.protocol.irc

2009-05-19 Thread Jean-Paul Calderone
On Tue, 19 May 2009 18:17:01 +0100, Patrick Thomson patrick.thom...@gmail.com wrote: I'm currently about to embark on building something from twisted which has an IRCD, and I have found the capacity to run IRC servers is lacking, in contrast to the excellent client/bot backend code. I've found

Re: [Twisted-Python] help using deferred

2009-05-11 Thread Jean-Paul Calderone
On Mon, 11 May 2009 12:24:54 +0200, Luigi Conte luigiandcosoluti...@gmail.com wrote: Hi people, I'm luigi and I'm a student at Politecnico di Milano, Italy. I'm working for a graduate thesis on a framework called usher. It provides an API to do connect e command operations. It manages all those

Re: [Twisted-Python] help using deferred

2009-05-11 Thread Jean-Paul Calderone
On Mon, 11 May 2009 16:55:40 +0200, Luigi Conte luigiandcosoluti...@gmail.com wrote: I'm sure you're saying only good things but I'm so inexpert in twisted that I can't understand very well what to do. I'll try to explain all that I want to do and how I did it wrongly: first I have to call the

Re: [Twisted-Python] Twisted HTTP 1.1 Web Client

2009-05-08 Thread Jean-Paul Calderone
On Fri, 8 May 2009 13:06:42 +0100, Reza Lotun rlo...@gmail.com wrote: Hi, Just curious, but what's the roadmap for the new web client (http://twistedmatrix.com/trac/ticket/886)? As I understand it only the finalization of a public api remains? That, as well as the implementation of higher-level

Re: [Twisted-Python] How can I change max simultaneously connection in twisted

2009-05-05 Thread Jean-Paul Calderone
On Tue, 05 May 2009 20:22:22 +0800, 孙绍轩 sunshaox...@cdeledu.com wrote: 孙绍轩 写道: [snip] I've found out how to solve the problem! I've changed python from 2.4 to 2.5, the problem has gone. It's a bug in twisted? No, a bug in Python.

Re: [Twisted-Python] deferToThread help

2009-04-29 Thread Jean-Paul Calderone
On Wed, 29 Apr 2009 11:45:09 -0700, Minesh Patel min...@gmail.com wrote: Sorry if this is a newbie question. I have a blocking function that I defer to thread, let's say 'foo' and I would like to add a callback that gets called after say 10 minues after Thread finishes def foo(): # Blocks for

Re: [Twisted-Python] Polling from Twisted

2009-04-28 Thread Jean-Paul Calderone
On Tue, 28 Apr 2009 14:57:31 -0300, Juanjo Conti jjco...@gmail.com wrote: I'll 400 clients in the first deploy and some thousands later. Do you think are many? You might want to consider a more efficient protocol. For example, when a client connects, you could tell it that you want it to send

Re: [Twisted-Python] Upcoming Twisted Sprint in Cambridge, MA

2009-04-27 Thread Jean-Paul Calderone
On Mon, 20 Apr 2009 15:35:43 -0400, Jean-Paul Calderone exar...@divmod.com wrote: Hello All, I'd like to organize another Twisted sprint in Cambridge, MA in May. As with previous sprints, this is an all day event, most likely hosted at the Divmod office in Porter Square, for Twisted hacking

[Twisted-Python] Upcoming Twisted Sprint in Cambridge, MA

2009-04-20 Thread Jean-Paul Calderone
Hello All, I'd like to organize another Twisted sprint in Cambridge, MA in May. As with previous sprints, this is an all day event, most likely hosted at the Divmod office in Porter Square, for Twisted hacking. Chris Armstrong has raised plugin system improvements as a possible topic. Other

Re: [Twisted-Python] _Win32Waker

2009-04-20 Thread Jean-Paul Calderone
On Mon, 20 Apr 2009 18:16:39 -0500, Aron Bierbaum aronbierb...@gmail.com wrote: I have looked into this a little more and have noticed that if I specify a port number instead of 0 it will always bind to the correct 127.0.0.1 address. I still don't know why this only occurs on certain Windows

Re: [Twisted-Python] Plugin startup and shutdown actions

2009-04-11 Thread Jean-Paul Calderone
On Sat, 11 Apr 2009 00:24:37 +0200, luper rouch luper.ro...@gmail.com wrote: I would like to port my Application API based services to the twistd plugin interface, to be able to retrieve command line options. In the existing services, I reimplemented t.a.s.MultiService startService() and

Re: [Twisted-Python] Fork/Spawn children to accept connections on the same port.

2009-04-10 Thread Jean-Paul Calderone
On Mon, 6 Apr 2009 15:25:39 -0700, Eric York ey...@apple.com wrote: I am trying to get the highest level of performance using all of the processors cores on a server. In the past, a unix app would bind/listen to a socket and then fork or spawn children to accept connections on that socket. I

Re: [Twisted-Python] trac server error

2009-04-10 Thread Jean-Paul Calderone
On Tue, 07 Apr 2009 16:13:53 +0200, Johann Borck johann.bo...@densedata.com wrote: there seems to be some serious problem with http://twistedmatrix.com/trac/ this is what the browser shows me on about one third of the requests: Sorry. This just happens sometimes. It's due to some bug in

Re: [Twisted-Python] Stackless Twisted shocking performance

2009-03-22 Thread Jean-Paul Calderone
On Fri, 20 Mar 2009 18:16:47 +, Simon Pickles sipick...@googlemail.com wrote: [snip] As more updates are sent zone-hub, per second, the incoming client-hub-zone messages take SECONDS to get thru! This is with approx 50 messages per second between a single zone and the hub. message is a

Re: [Twisted-Python] Stackless Twisted shocking performance

2009-03-22 Thread Jean-Paul Calderone
On Sun, 22 Mar 2009 18:32:30 -0500, Jean-Paul Calderone exar...@divmod.com wrote: On Fri, 20 Mar 2009 18:16:47 +, Simon Pickles sipick...@googlemail.com wrote: [snip] As more updates are sent zone-hub, per second, the incoming client-hub-zone messages take SECONDS to get thru

Re: [Twisted-Python] So how does everyone use an ORM in twisted?

2009-03-17 Thread Jean-Paul Calderone
On Tue, 17 Mar 2009 11:05:59 -0400, Ryan Lepidi ryeg...@gmail.com wrote: I have searched a bit, and it seems as though you can't use SQL Alchemy with twisted due to SA being thread unsafe. The only solution I found was sAsync, but this is old and unmaintained. What is everyone else doing for

Re: [Twisted-Python] Noob Question

2009-03-15 Thread Jean-Paul Calderone
On Sun, 15 Mar 2009 08:55:25 -0500, Shelby Ramsey sicfsl...@gmail.com wrote: Peter, Thanks for the assistance. I think you and David have me on the right path. Just to clarify the protocol looks like this: Hi Shelby, You may want to consider re-using an existing protocol rather than

Re: [Twisted-Python] _Win32Waker

2009-03-09 Thread Jean-Paul Calderone
On Mon, 9 Mar 2009 09:17:14 -0500, Aron Bierbaum aronbierb...@gmail.com wrote: I have been unable to reproduce this problem on multiple machines that I have tested on. Also I have tried changing various network settings on my machine without any change. Do you have any ideas what I should be

Re: [Twisted-Python] _Win32Waker

2009-03-06 Thread Jean-Paul Calderone
On Thu, 5 Mar 2009 16:49:15 -0600, Aron Bierbaum aronbierb...@gmail.com wrote: I have been using a custom Qt4 reactor that derives from PosixReactorBase. As a result it creates a _Win32Waker to allow threads and signals to wake up the IO thread. It seems though that the current implementation

Re: [Twisted-Python] Re:how to pass on the connection failed or connection lost error

2009-03-06 Thread Jean-Paul Calderone
On Thu, 5 Mar 2009 15:49:31 -0800 (PST), khawar hasham hasham_james_...@yahoo.com wrote: Hi, I tried to use this suggestion but I could not make it work. here is the test I am using in my application class def callSend(self, msg):   plugin.send(msg) Now in plugin class def send(self,

Re: [Twisted-Python] sending large files from web2 http server

2009-03-05 Thread Jean-Paul Calderone
On Thu, 05 Mar 2009 16:20:27 +0100, Markus Wanner mar...@bluegap.ch wrote: Hi, I'm trying to stream longish data via web2, but experience sudden stalls in data transfer, followed by a connection abort after a certain timeout. I can't completely reproduce the issue, yet, but figured that the

Re: [Twisted-Python] Twisted developers: please donate your time!

2009-03-02 Thread Jean-Paul Calderone
On Mon, 02 Mar 2009 09:08:00 -0500, Itamar Shtull-Trauring ita...@itamarst.org wrote: On Tue, 2009-02-24 at 21:25 +1300, Michael Hudson wrote: 2009/2/24 Itamar Shtull-Trauring ita...@itamarst.org: As part of the TSF's fundraising efforts, we are trying to get upfront donations of time you

Re: [Twisted-Python] newbie problem with SMTPClient

2009-03-02 Thread Jean-Paul Calderone
On Mon, 2 Mar 2009 15:57:17 -0500, Dave Britton d...@davebritton.com wrote: I love the idea of twisted but I think I must have a twisted learning disability, as I have gotten nowhere in what ought to be a simple matter. I need to send out emails to small groups from my apache server running a

Re: [Twisted-Python] Bug in twisted.names.client

2009-03-02 Thread Jean-Paul Calderone
On Mon, 2 Mar 2009 23:33:57 +0100, Nicolas Toper nto...@gmail.com wrote: Good point, you are right. Thanks :) I can still commit a patch: really there just need a finally clause at the end of maybeParseConfig to close the file AFAI A patch (with unit test :) would be quite welcome. Please

[Twisted-Python] Development Process Failure

2009-02-23 Thread Jean-Paul Calderone
Hey all, Recently I've been bothered by a systematic shortcoming of the Twisted development process. When changes are made in response to a review, they are generally made in a way which is difficult to inspect. The value of a review is lost if the valid points raised by it are not addressed

Re: [Twisted-Python] Twisted slow in Mac OS X fast on Windows

2009-02-20 Thread Jean-Paul Calderone
On Fri, 20 Feb 2009 11:11:24 -0800, Brian Granger ellisonbg@gmail.com wrote: Hi, We use Twisted extensively in the IPython project for parallel and distributed computing. We have an extensive test suite that uses trial to test our servers and clients. Everything works great...but...the

Re: [Twisted-Python] Debugging Twisted

2009-02-20 Thread Jean-Paul Calderone
On Fri, 20 Feb 2009 20:15:02 +0100, Luper Rouch luper.ro...@gmail.com wrote: Jean-Paul Calderone wrote : On Fri, 20 Feb 2009 19:56:54 +0100, Luper Rouch luper.ro...@gmail.com wrote: I would like to investigate on the conch error I mentionned in my previous message (KeyError when an errback

Re: [Twisted-Python] Twisted Sprint in February

2009-02-20 Thread Jean-Paul Calderone
On Thu, 5 Feb 2009 16:56:51 -0500, Jean-Paul Calderone exar...@divmod.com wrote: On Mon, 26 Jan 2009 18:10:32 -0500, Jean-Paul Calderone exar...@divmod.com wrote: Hello All, I'd like to organize another Twisted sprint in Cambridge, MA in February. As with previous sprints, this is an all day

Re: [Twisted-Python] mind, twisted.cred and HTTPAuthSessionWrapper

2009-02-19 Thread Jean-Paul Calderone
On Thu, 19 Feb 2009 19:39:48 +0100, Esteve Fernandez est...@sindominio.net wrote: On Thursday 19 February 2009 18:57:29 Jean-Paul Calderone wrote: On Thu, 19 Feb 2009 18:47:37 +0100, Esteve Fernandez est...@sindominio.net wrote: On Thursday 19 February 2009 18:28:59 Jean-Paul Calderone wrote

Re: [Twisted-Python] mind, twisted.cred and HTTPAuthSessionWrapper

2009-02-19 Thread Jean-Paul Calderone
On Thu, 19 Feb 2009 20:22:30 +0100, Esteve Fernandez est...@sindominio.net wrote: On Thursday 19 February 2009 19:46:59 Jean-Paul Calderone wrote: But, in our case, requestAvatar can only return something based on what the checker returns. I mean, requestAvatar receives an avatarId

<    1   2   3   >