Re: [Twisted-Python] How do I write AMP Command definitions TTD-edly?

2013-03-05 Thread Laurens Van Houtven
That looks awesome. I can't find a license for it. I'm publishing some third-party helpers for twisted's amp implementation as I need them myself (presumably I'll make a formal release announcement at the Pycon sprints). Do you mind if I copy this code? I can't seem to find a license. (txampext

[Twisted-Python] How do I write AMP Command definitions TTD-edly?

2013-03-04 Thread Laurens Van Houtven
Hi, I have no issue writing AMP responders TTD-edly, they work pretty much the way any other code would. However, I did notice that the only way I'd notice if my Command definitions themselves were broken were if my functional tests start failing. It would be nice if I could write unit test

Re: [Twisted-Python] How to dispatch message to different servers

2013-03-02 Thread Laurens Van Houtven
Yes, that looks okay, but that wasn't in your original sample ;-) I'm on my phone at the moment which isn't great for code review, but it looks like you only fire one deferred per line? On Mar 2, 2013 9:50 AM, Benjamin BERTRAND bee...@gmail.com wrote: Le 2 mars 2013 à 04:34,

Re: [Twisted-Python] How to dispatch message to different servers

2013-03-02 Thread Laurens Van Houtven
10:08, Laurens Van Houtven _...@lvh.cc a écrit : Yes, that looks okay, but that wasn't in your original sample ;-) Yep, sorry about that. I was more focused on the ServerFactory and Protocol. The pcap in a thread comes from the link I mentioned in my first post: http://dound.com/2009/09

Re: [Twisted-Python] How to dispatch message to different servers

2013-03-02 Thread Laurens Van Houtven
, you do have dispatch logic, it just lives somewhere else). On Sat, Mar 2, 2013 at 3:25 PM, Benjamin BERTRAND bee...@gmail.com wrote: Le 2 mars 2013 à 14:53, Laurens Van Houtven _...@lvh.cc a écrit : Ah, but that too appears to be missing in the original code ;-) The stuff you're doing

Re: [Twisted-Python] How to dispatch message to different servers

2013-03-02 Thread Laurens Van Houtven
Hey Glyph, As usual, I agree with most of what you have to say, but... On Sat, Mar 2, 2013 at 8:58 PM, Glyph gl...@twistedmatrix.com wrote: Deploying a polyglot AMP system is a breeze, even if you have to implement AMP from scratch for the other language in order to do it ;). Could you help

Re: [Twisted-Python] How to dispatch message to different servers

2013-03-01 Thread Laurens Van Houtven
Well, you'd presumably have a connection to each of the servers in the form of a client factory and a protocol instance. Then, every time you get a message, you figure out which protocol instance you want (the one for the appropriate server) and send a message to it. You could do that with

Re: [Twisted-Python] txjsonrpc

2013-01-31 Thread Laurens Van Houtven
On Thu, Jan 31, 2013 at 4:43 PM, Matthew Williams mgwilli...@gmail.comwrote: I have a couple questions regarding txjsonrpc ( https://github.com/oubiwann/txjsonrpc/) in connection with the recent addition of version 2.0 support. * How complete is the version 2.0 support? I had actually tried

Re: [Twisted-Python] inlineCallbacks: multiple yielding same Defferred behaviour

2013-01-28 Thread Laurens Van Houtven
I'm not entirely sure why you feel this is unintuitive or why you should need a workaround; in any other case, deferreds work pretty much the same way. When reading this code, the first question that pops up in my head is: why are you doing this instead of just using the result that you already

Re: [Twisted-Python] Twisted-related talks and tutorials at PyCon

2013-01-28 Thread Laurens Van Houtven
My crypto 101 talk is probably going to be pretty light on the twisted: right now there's nothing in it, I'm considering adding some, but I'm also strapped for time :( On Mon, Jan 28, 2013 at 3:56 PM, Itamar Turner-Trauring ita...@futurefoundries.com wrote: Hi, Thought I'd point out some

Re: [Twisted-Python] Twisted Names strings

2013-01-17 Thread Laurens Van Houtven
FYI, this change also broke wokkel, too, so at least you're not alone, it seems... https://twistedmatrix.com/trac/ticket/6245 On Thu, Jan 17, 2013 at 5:22 PM, Angelo Dell'Aera angelo.della...@gmail.com wrote: After updating Twisted to 12.3.0 I started getting errors like the following one

Re: [Twisted-Python] TypeError: Class advice impossible in Python3

2013-01-14 Thread Laurens Van Houtven
The Foolscap website describes the principal features (as differences to PB): http://foolscap.lothar.com/trac/wiki/FoolscapFeatures On Mon, Jan 14, 2013 at 9:53 AM, Maxim Lacrima lacrima.ma...@gmail.comwrote: Hi! Sorry for off-topic. What is the motivation behind creation of Foolscap

Re: [Twisted-Python] Appropriate exception for AMP types receiving garbage?

2013-01-13 Thread Laurens Van Houtven
transport would be nice :) Any ticket suggestions welcome. On Thu, Dec 27, 2012 at 8:02 AM, Glyph gl...@twistedmatrix.com wrote: On Dec 26, 2012, at 1:43 PM, Laurens Van Houtven _...@lvh.cc wrote: I'm writing a custom AMP type. I noticed that when writing the unit test for garbage input, I

Re: [Twisted-Python] Need help using FTPClient

2012-12-28 Thread Laurens Van Houtven
Well, sure; if you want your program to do the SOCKSing, Twisted has an implementation for that, so you *can*; Glyph is just suggesting that it may be easier to use Twisted only for the FTP-y bits, and rely on other software (such as socksify) to handle the SOCKS parts :) So, to rephrase the

Re: [Twisted-Python] Twisted 12.3.0 released

2012-12-26 Thread Laurens Van Houtven
Yay! Thanks for an awesome Christmas present Thomas :) On Wed, Dec 26, 2012 at 2:21 PM, Thomas Hervé the...@free.fr wrote: On behalf of Twisted Matrix Laboratories, I am pleased to announce, in extremis, the release of Twisted 12.3. 161 tickets are closed by this release, with the following

[Twisted-Python] Appropriate exception for AMP types receiving garbage?

2012-12-26 Thread Laurens Van Houtven
Hi, I'm writing a custom AMP type. I noticed that when writing the unit test for garbage input, I didn't really know what exception to check for. I couldn't find any place where this was formally defined, so I checked for implementation behavior. Boolean explicitly raises TypeError. Integer

Re: [Twisted-Python] Second pre-release of Twisted 12.3.0

2012-12-20 Thread Laurens Van Houtven
I just noticed that I forgot to say this on the previous pre-release, but this counts for both: All tests green on my end :) On Thu, Dec 20, 2012 at 3:58 PM, Thomas Hervé the...@free.fr wrote: Hi twisteders, As it turns out, making a 4th release in 2012 wasn't going to be easy! Thanks to

Re: [Twisted-Python] how to change default reactor of twisted.internet?

2012-12-12 Thread Laurens Van Houtven
You should update your twisted install; it'll pick a better default then select on most platforms. For installing other reactors, see individual reactor's documentation, e.g: https://twistedmatrix.com/documents/current/api/twisted.internet.cfreactor.html (because individual reactors may require

[Twisted-Python] Getting my Cred interfaces right: IUsername(Hashed)?Password

2012-11-14 Thread Laurens Van Houtven
Hi, I'm trying to make sure that I have my cred interfaces right. Users log in using a username and password. They provide these credentials in plaintext (over a TLSd connection). The user password is stored using a secure key derivation function (in casu, scrypt). Currently I have this

Re: [Twisted-Python] Getting my Cred interfaces right: IUsername(Hashed)?Password

2012-11-14 Thread Laurens Van Houtven
On Wed, Nov 14, 2012 at 1:29 PM, exar...@twistedmatrix.com wrote: This isn't right. The point of declaring interfaces on the checker is so the system knows what kind of credentials it can check. If your credentials object implements a different interface than your checker declares it can

Re: [Twisted-Python] twisted thumbnail server

2012-11-02 Thread Laurens Van Houtven
Yeah, very big +1 to showing the deferToThread version. I feel bad even trying to spot potential threading issues here... It could be because the default thread pool isn't very large, but you're making many requests. What functionality does boto have that txaws doesn't that you really need here?

Re: [Twisted-Python] Transplating a request's transport (SockJS)

2012-10-30 Thread Laurens Van Houtven
On Mon, Oct 29, 2012 at 4:02 PM, exar...@twistedmatrix.com wrote: In case anyone didn't read #3204: this is, of course, an unsupported use of transports and not guaranteed to work or continue working (currently it will not work if you happen to be using the (preferred) protocol- based SSL

Re: [Twisted-Python] Transplating a request's transport (SockJS)

2012-10-30 Thread Laurens Van Houtven
On Tue, Oct 30, 2012 at 10:04 AM, Phil Mayers p.may...@imperial.ac.ukwrote: Would it not make more sense to subclass Site and swap out the Channel implementation for one that can be pointed somewhere else? It means you have to use that Site for any WebSocket enabled site, but it would be

[Twisted-Python] Transplating a request's transport (SockJS)

2012-10-28 Thread Laurens Van Houtven
Hi, I've been trying to play with SockJS + Twisted. There's an implementation here: https://github.com/Fugiman/sockjs-twisted However, I'm already running a web server, and as the README says sockjs-twisted is *not* intended to be run together with a web server. It doesn't really use any of the

Re: [Twisted-Python] Transplating a request's transport (SockJS)

2012-10-28 Thread Laurens Van Houtven
On Sun, Oct 28, 2012 at 9:17 PM, Glyph gl...@twistedmatrix.com wrote: Since there's no supported way to transplant a transport (see http://tm.tl/3204)... yes. Aha! But, even if you were going to rely on undefined behavior and private APIs, I don't see anything in your code sample that

Re: [Twisted-Python] Silly txoauth with Twisted Client Question

2012-10-24 Thread Laurens Van Houtven
txoauth is something I started, then I realized I really hate oauth, then it was adopted by simplegeo who afaik proceeded to not do anything with it, and then I readopted it on github. There's not much work on it, but what's there has a complete test suite. ISTR glyph at one point describing an

Re: [Twisted-Python] Adding mock as a test suite dependency

2012-10-22 Thread Laurens Van Houtven
So, mock does have an autospec mode, which is not the default, but does result in eg methods undefined on the parent raising AttributeError. I don't know if there's a way to generate a mock from an interface: particularly the fact that interface methods don't have self in their signature might

Re: [Twisted-Python] git repo maintenance

2012-10-21 Thread Laurens Van Houtven
Awesome!!! At what point did this change? ISTR the lack of interest in maintaining the Github account was pretty much a consequence of it seeming pretty pointless: ie it was still easier to just use SVN than to figure out where the parts work together. Will code review also be happening at a

[Twisted-Python] Getting deprecation warnings?

2012-09-05 Thread Laurens Van Houtven
Hey, What is the appropriate way to run twistd apps in such a way that I get nice and loud deprecation warnings? I ran into an issue with one of my apps with the new release because t.w.error.NoResource is now t.w.resource.NoResource, I would like to make my code as forward compatible as

Re: [Twisted-Python] Getting deprecation warnings?

2012-09-05 Thread Laurens Van Houtven
Huh. I have complete unit test coverage and was using trial, but somehow I managed to miss that... I guess I will have to pay more attention or something?! I will try to recreate a situation where the warnings should pop up. Thanks! On Wed, Sep 5, 2012 at 9:11 PM, exar...@twistedmatrix.com

[Twisted-Python] Running and supervising twistd daemons

2012-08-18 Thread Laurens Van Houtven
Hi, What's the nicest way to run and supervise a twistd daemon? I hear good things about systemd, but I can't figure out if it's PR or actual awesome new tech. It's not impossible to get on Debian, but certainly not the default (and IIUC not even in stable yet). While I understand how it's

[Twisted-Python] IUnicodeUsernamePassword?

2012-08-08 Thread Laurens Van Houtven
Hi, Adding t.conch's ssh manhole (any third party IUsernamePassword provider would've done, really) to my app recently uncovered some unicode handling issues and I'm wondering what the appropriate way to resolve them is. In my API (AMP) there is a: - e-mail which is unicode - password

[Twisted-Python] twisted server config: command line, environment or Axiom?

2012-08-08 Thread Laurens Van Houtven
Hi, I have a bunch of configuration for my service. Things like endpoints, location of the root axiom store… Right now I grab these from the environment. That means that my twistd IServiceMaker plugin's options is pretty much by definition empty. I'm wondering if more mature twistd users have

Re: [Twisted-Python] AMPBox as an Argument?

2012-08-05 Thread Laurens Van Houtven
a special case. This argues against implementing Dict in terms of AMPList, though. ;) Jean-Paul cheers lvh On 20 Jul 2012, at 10:35, Glyph wrote: On Jul 20, 2012, at 1:11 AM, Laurens Van Houtven _...@lvh.cc wrote: Hi, Apparently AMPBoxes aren't Arguments. However, I kind of want

[Twisted-Python] TAP howto: doesn't appear to cover installation

2012-08-03 Thread Laurens Van Houtven
Hi, I'm reading the tap how to: http://twistedmatrix.com/documents/current/core/howto/tap.html In the conclusion, it says: • Use it from your development environment • Install it correctly and use it in deployment I can get it to work from my development environment, but I can't find anything

Re: [Twisted-Python] [RFC] Introducing six as a dependency

2012-07-26 Thread Laurens Van Houtven
Does Glyph still believe these arguments to be true today? I don't know how long ago he said that, but I do know there's a lot of stuff that's been done to make packaging better :) Perhaps we could look into shipping twisted releases with and without dependencies? I personally have no such

Re: [Twisted-Python] AMPBox as an Argument?

2012-07-24 Thread Laurens Van Houtven
Sure, I just ended up doing that. Would it be worth creating a ticket, or am I seriously the first person to want this? cheers lvh On 20 Jul 2012, at 10:35, Glyph wrote: On Jul 20, 2012, at 1:11 AM, Laurens Van Houtven _...@lvh.cc wrote: Hi, Apparently AMPBoxes aren't Arguments

Re: [Twisted-Python] i want to update 1000 devices running as servers

2012-07-20 Thread Laurens Van Houtven
What version of twisted are you using and which reactor is it using? (You can tell from the logs) Note that your process for getting data from the datasource is blocking. What sort of data source is it, and why are you stripping stuff off of it? You might want to consider something more

[Twisted-Python] AMPBox as an Argument?

2012-07-20 Thread Laurens Van Houtven
Hi, Apparently AMPBoxes aren't Arguments. However, I kind of want an AMPBox (like an AMPList, but only one). Use case: my responses have a location, but a location is composed of several sub-things: place name, country and postal code. {location: {placeName: Krakow, countryCode: PL,

Re: [Twisted-Python] A few simple questions

2012-07-12 Thread Laurens Van Houtven
On Thursday, July 12, 2012, Russell E. Owen wrote: I'm adding Twisted support to some existing communication code and I have a few questions which I hope are simple. I've been reading the API documentation, but if the answers are there I'm missing them. What happens if one tries to write to

Re: [Twisted-Python] EuroPython 2012 Twisted tutorial postmortem

2012-07-08 Thread Laurens Van Houtven
the tutorial (about gevent ;)) On Sun, Jul 8, 2012 at 4:28 PM, Adi Roiban a...@roiban.ro wrote: On 7 July 2012 16:05, Laurens Van Houtven _...@lvh.cc wrote: Hey :) As some of you probably know Stephen and I did the Twisted Tutorial at EuroPython. Let me start off by saying

Re: [Twisted-Python] twisted.web.static.File and MIME types

2012-07-07 Thread Laurens Van Houtven
I'm pretty sure that's how you do it. No _, so it's public :) Yes, it should be documented -- maybe a ticket is in order? cheers lvh On 07 Jul 2012, at 11:43, Tobias Oberstein wrote: Hi, I need to add MIME types to twisted.web.static.File. The following works, but seems to use

[Twisted-Python] EuroPython 2012 Twisted tutorial postmortem

2012-07-07 Thread Laurens Van Houtven
Hey :)As some of you probably know Stephen and I did the Twisted Tutorial at EuroPython.Let me start off by saying that there was a lot of interest. A picture says a thousand words:(We got upgraded to the bigger room because it was booked entirely and people were apparently still trying to get in

Re: [Twisted-Python] Doing HTTP file uploads (multipart forms) RESOLVED

2012-07-07 Thread Laurens Van Houtven
With a lot of help from idnar, the issue is resolved! There were a few red herrings that ended up cleaning my code a lot, but eventually it ended up boiling down to my MIME generating code simply being busted. Fixed version attached. Apparently this also highlighted a minor issue in

Re: [Twisted-Python] Doing HTTP file uploads (multipart forms) RESOLVED

2012-07-07 Thread Laurens Van Houtven
Forgot the attachment (as itamar pointed out) cheers lvh On 07 Jul 2012, at 16:57, Laurens Van Houtven wrote: With a lot of help from idnar, the issue is resolved! There were a few red herrings that ended up cleaning my code a lot, but eventually it ended up boiling down to my MIME

Re: [Twisted-Python] Doing HTTP file uploads (multipart forms) RESOLVED

2012-07-07 Thread Laurens Van Houtven
= client.Agent(reactor) d = agent.request(POST, http://localhost:8080;, headers, producer) return d if __name__ == __main__: d = send() d.addCallback(lambda _result: reactor.stop()) reactor.run() cheers lvh On 07 Jul 2012, at 16:57, Laurens Van Houtven wrote: With a lot

[Twisted-Python] Doing HTTP file uploads (multipart forms)

2012-07-06 Thread Laurens Van Houtven
Hi, I have some code that takes file uploads from browsers. I'm trying to write a test for it, so now I need to get Twisted to do file uploads like browsers do. I think my code (not test code) essentially works, by manually trying it with a browser. I can't get the functional test part to

Re: [Twisted-Python] Doing HTTP file uploads (multipart forms)

2012-07-06 Thread Laurens Van Houtven
On 06 Jul 2012, at 10:47, Laurens Van Houtven wrote: Hi, I have some code that takes file uploads from browsers. I'm trying to write a test for it, so now I need to get Twisted to do file uploads like browsers do. I think my code (not test code) essentially works, by manually trying

Re: [Twisted-Python] Doing HTTP file uploads (multipart forms)

2012-07-06 Thread Laurens Van Houtven
Aha, okay, so that's that possible culprit off the table. Thanks! FWIW: Chunked transfer encoding *should* work with twisted.web.server, right? cheers lvh On 06 Jul 2012, at 11:39, Phil Mayers wrote: some random junk in front of it (3 ASCII hex digits and a CRLF) and some junk at the end

Re: [Twisted-Python] Absent List-Id header? (was: Doing HTTP file uploads)

2012-07-06 Thread Laurens Van Houtven
Sorry, I hope this isn't causing you any issues! FWIW my client is Mail.app on a fully updated Lion machine. cheers lvh On Fri, Jul 6, 2012 at 12:52 PM, Phil Mayers p.may...@imperial.ac.ukwrote: On 06/07/12 09:47, Laurens Van Houtven wrote: Hi, I have some code that takes file uploads

Re: [Twisted-Python] Assigning AMP box senders receivers from the responder

2012-07-04 Thread Laurens Van Houtven
On 03 Jul 2012, at 23:53, Glyph wrote: On Jul 3, 2012, at 12:08 AM, Laurens Van Houtven _...@lvh.cc wrote: I'm trying to implement a command called Become that allows a staff member to work as if he was the user himself. The most obvious way (to me at least) to do that to create

[Twisted-Python] Assigning AMP box senders receivers from the responder

2012-07-03 Thread Laurens Van Houtven
Hi, I have an AMP service that does cred-based auth with IBoxReceiver as the interface (see mantissa). On login, the user gets a different API depending if they're a staff member or not. Additionally, I wrote a composing IResponderLocator. It takes a bunch of responder locators and calls them

Re: [Twisted-Python] deferred graph?

2012-06-28 Thread Laurens Van Houtven
You should still see the unhandled deferred in your logs if that's truly the case. On Thursday, June 28, 2012, Dan Stromberg wrote: Hi. I'm a Twisted neophyte, but I've been using Python a long time. My question: Is there a way of producing a deferred graph in a Python program at a given

[Twisted-Python] Deserializing AMP callRemoteString without knowing the Command's signature

2012-06-26 Thread Laurens Van Houtven
Hi, As some of you may know I am working on a JSON-RPC - AMP bridge to consume AMP services from browsers. WIP: http://lvh.github.com/amphibian/ I've hit a failing integration test. I know what the issue is -- I don't know how to resolve it. I attempted to write the proxy without any knowledge

Re: [Twisted-Python] AMP WebSockets bridging

2012-06-18 Thread Laurens Van Houtven
How do you process that data on the client side given the poor support of ArrayBuffer and Blob? On Monday, June 18, 2012, Corbin Simpson wrote: On Fri, Jun 15, 2012 at 12:32:37PM -0700, Glyph wrote: On Jun 15, 2012, at 10:13 AM, Laurens Van Houtven wrote: The issue is that while AMP

Re: [Twisted-Python] AMP WebSockets bridging

2012-06-16 Thread Laurens Van Houtven
On Friday, June 15, 2012, Glyph wrote: On Jun 15, 2012, at 10:13 AM, Laurens Van Houtven wrote: Hi, I'm trying to get browsers to communicate with an AMP API. This is also what https://launchpad.net/frack is doing. I hope that it becomes a common enough practice that there's

Re: [Twisted-Python] AMP WebSockets bridging

2012-06-16 Thread Laurens Van Houtven
On Saturday, June 16, 2012, Tobias Oberstein wrote: Do you happen to know what the figures are like for iOS? I know mobile Safari only got web sockets in 4.something (1 or 2), I'm not sure what version of the protocol it speaks either, and obviously flash isn't an option... 4.2.1 .. which

[Twisted-Python] AMP WebSockets bridging

2012-06-15 Thread Laurens Van Houtven
Hi, I'm trying to get browsers to communicate with an AMP API. Right now I'm trying to do that using WebSockets with Corbin SImpson's txWS. Eventually I'll try to write a Twisted implementation of SockJS, which is basically portable websockets all the way down to IE6. The issue is that while

Re: [Twisted-Python] deferLater with trial issue

2012-05-23 Thread Laurens Van Houtven
You're supposed to clean up whatever junk you left in the reactor after your test. Do that in the tearDown method. cheers lvh On 23 May 2012, at 23:30, Conway, Nicholas J wrote: Hi, I have a class that needs to kick off a method the repeatedly gets call every so many seconds, lets say

[Twisted-Python] Declaring AMP responders away from

2012-05-16 Thread Laurens Van Houtven
Hi, I'm writing a service that exposes a bunch of methods over AMP. These methods are easily logically grouped into separate modules (i.e. message-related, picture-related…). So, I'd like to define the behavior for those methods in those modules. However, the amp.Command.responder decorator

[Twisted-Python] Mimicking a blocking API using Twisted

2012-03-25 Thread Laurens Van Houtven
Hi, I'm trying to find out if there's a reasonable way to mimic a blocking API with an existing non-blocking API. I want to do this so I can write doctests. For example, I want to make a remote AMP call. It returns a deferred. Instead of returning a deferred, I want it to block until the

Re: [Twisted-Python] Mimicking a blocking API using Twisted

2012-03-25 Thread Laurens Van Houtven
cucumber-style scenario text). cheers lvh On 25 Mar 2012, at 23:44, Itamar Turner-Trauring wrote: On 03/25/2012 05:02 PM, Laurens Van Houtven wrote: Hi, I'm trying to find out if there's a reasonable way to mimic a blocking API with an existing non-blocking API. I want to do this so I

Re: [Twisted-Python] I'm working on a SPDY implementation

2012-02-11 Thread Laurens Van Houtven
Woo, excellent :) I am very excited by this project and your progress so far, keep up the good work :) On Sat, Feb 11, 2012 at 12:52 AM, Myers Carpenter my...@maski.org wrote: I'm working on a SPDY protocol implementation for Twisted. I've been keeping a hacking log here:

[Twisted-Python] Twisted Sprint at PyCon 2012 -- please sign up!

2012-01-31 Thread Laurens Van Houtven
Hey! So, I volunteered to manage the sprint at PyCon 2012. Since no-one else has, I'm moving forward assuming I got the job ;-) You should sign up (which involves logging in on the PyCon site, scrolling to the bottom, clicking Edit and adding your name) to the sprint. This makes it easier for

Re: [Twisted-Python] Multiple callbacks

2012-01-25 Thread Laurens Van Houtven
Note that that's just pythons late binding semantics, nothing twistedy going on here :) On Jan 25, 2012 2:24 PM, Аркадий Левин poison...@gmail.com wrote: Hi, you need add grid to lambda arguments, f = lambda _, grip=grip:self.gotDataBin(_, grid) On Wed, Jan 25, 2012 at 6:04 PM, Tech

Re: [Twisted-Python] Twisted on PyPy

2011-11-21 Thread Laurens Van Houtven
I tried once, and then I submitted a ticket, because a Cython extension was preventing a complete install. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Global reactor unit tests in the Twisted test suite

2011-11-01 Thread Laurens Van Houtven
+1. Agree completely, did not realize this was still a point of contention. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twisted for Python 3

2011-10-19 Thread Laurens Van Houtven
Woo! Exciting :) I'm surprised trial works. Wasn't there still a problem left with trial related to unbound methods going away (and the replacing functions not having a reference to the class they belong to...)? Something in t.python that gets things based on their name, I thought... Oh well, if

[Twisted-Python] Sent e-mails coming up empty

2011-10-05 Thread Laurens Van Houtven
Hey, I've hacked some code together based on smtpclient_tls.py and radix's article on how to send e-mail: http://radix.twistedmatrix.com/2010/07/how-to-send-good-unicode-email-with.html Here's what I've come up with: http://paste.pocoo.org/show/487918/ The e-mail arrives, but it's as if the

Re: [Twisted-Python] Sent e-mails coming up empty

2011-10-05 Thread Laurens Van Houtven
Eek! As Stephen somewhat tongue-in-cheekly pointed out, this was fixed by rewinding the StringIO ;) cheers lvh On 05 Oct 2011, at 22:46, Thorne, Stephen wrote: Have you tried rewinding the stringio with .seek(0,0) first? Stephen On Wed, Oct 5, 2011 at 21:34, Laurens Van Houtven

[Twisted-Python] Running the same trial test suite against a live server and a mock server

2011-09-26 Thread Laurens Van Houtven
Hey, In order to properly test txievery (a twisted library for dealing with Paypal's APIs), I'm building a mock Paypal server. The idea is to run the same high-level tests (which basically use the API and eventually make it make real HTTPS requests) against both the mock server and the Paypal

Re: [Twisted-Python] Welcome to the Twisted-Python mailing list (Digest mode)

2011-09-20 Thread Laurens Van Houtven
Wait. You are capturing GPS data from an IP port. Is that TCP? What format is the data in? GPS? I have worked on twisted.positioning, a library for doing GPS data with Twisted, but this ticket is still in review. ___ Twisted-Python mailing list

Re: [Twisted-Python] How can LoopCall not be defined?

2011-09-08 Thread Laurens Van Houtven
I've never heard of LoopCall. Maybe you meant LoopingCall? cheers lvh ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] Minitrue: implementing ICAP proxylet support, or implementing sslbump

2011-09-08 Thread Laurens Van Houtven
Hi :) Context for those who haven't heard of minitrue: it's a twisted powered HTTP proxy that is designed to lie. It lets you modify requests and responses. So far, it's been a mostly academic exercise, which I suppose could have real-world applications. I'd like to learn some more about how to

Re: [Twisted-Python] [ANN] Turtl 0.1.1 throttler released

2011-08-17 Thread Laurens Van Houtven
On Wed, Aug 17, 2011 at 9:02 PM, Valentino Volonghi dialt...@gmail.comwrote: Hey Glyph thanks! :) I'd add it to ProjectsUsingTwisted but I don't have rights on trac. I added it for you. About the tx project instead AdRoll open source repositories are on bitbucket for now, unless there's

Re: [Twisted-Python] Reconnection to Serialport after connectionLost

2011-08-01 Thread Laurens Van Houtven
Oh, right, serial. My mistake, sorry :) ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] runReactor tests vs. t.i.task.cooperate and other users of the global reactor

2011-07-26 Thread Laurens Van Houtven
Gut feeling says change the new TLS code to take in a reactor instance and pass it everywhere. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] A new improved IResource

2011-07-24 Thread Laurens Van Houtven
I've been looking at this again recently and honestly it's beginning to feel like I'm reimplementing large parts of web2. Does that mean I'm doing it wrong? ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com

Re: [Twisted-Python] Async-pep (again)

2011-07-14 Thread Laurens Van Houtven
On Thu, Jul 14, 2011 at 8:48 AM, Tim Allen screwt...@froup.com wrote: On Wed, Jul 13, 2011 at 02:03:03PM +0200, Laurens Van Houtven wrote: So, some of you might remember my async-pep post a while ago. Some people correctly complained there was no code or text. There's some code and quite

[Twisted-Python] Async-pep (again)

2011-07-13 Thread Laurens Van Houtven
Hey! So, some of you might remember my async-pep post a while ago. Some people correctly complained there was no code or text. There's some code and quite a bit of text now. In fact, it even has a PEP number (3153)! So I'm soliciting feedback again. There's an issue tracker that ideally

Re: [Twisted-Python] Ways to register stuff only done for backwards compatibility

2011-07-07 Thread Laurens Van Houtven
I hear tickets is how you get things done: http://tm.tl/5181 ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-06 Thread Laurens Van Houtven
On Wed, Jul 6, 2011 at 12:19 AM, Kevin Horn kevin.h...@gmail.com wrote: Also, Git _is_ worse on Windows than it is on *nix. It's just not as bad as it _used_ to be. It's functional. It works. But it is difficult to deal with, and a lot of Windows users I have talked to (as well as myself,

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-05 Thread Laurens Van Houtven
On Tue, Jul 5, 2011 at 9:31 AM, Wolfgang tds333...@gmail.com wrote: Hi, If you ever want someone contributing under Windows, github with git is not a good solution. Why not? I know the reasons three years ago (and most of them were either permissions or performance), but I have been

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-05 Thread Laurens Van Houtven
On Tue, Jul 5, 2011 at 11:05 AM, Orestis Markou ores...@orestis.gr wrote: Finally, for what it's worth, for me as a potential contributor to Twisted (I still want to help with documentation) SVN is a much bigger barrier of entry than Trac. Even an official git mirror (complete with branches)

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-05 Thread Laurens Van Houtven
On Tue, Jul 5, 2011 at 12:22 PM, David da...@silveregg.co.jp wrote: Most people who stay on windows do not find cygwin or even CLI tools an acceptable solution. So, the argument isn't that git is worse on Windows than it is on *nix: it's just that Windows users don't want to use CLI tools?

Re: [Twisted-Python] SURVEY: Have you submitted a patch to Twisted and it never got in?

2011-07-05 Thread Laurens Van Houtven
On Tue, Jul 5, 2011 at 7:36 AM, Johan Rydberg johan.rydb...@edgeware.tvwrote: On 7/1/11 6:08 PM, Itamar Turner-Trauring wrote: In order to have at least some anecdotal evidence -- I've had some patched rejected, probably on sound basis. But the experience always leave you with a feeling

[Twisted-Python] Ways to register stuff only done for backwards compatibility

2011-07-05 Thread Laurens Van Houtven
Hi, In doing twisted.positioning I find my self writing a bunch of code in ways I would ordinarily write it differently, because we have to support 2.4 still (when is that going away? Isn't the most recent RHEL 2.6 already?). Is there some way to register that so that as soon as we stop

Re: [Twisted-Python] Ways to register stuff only done for backwards compatibility

2011-07-05 Thread Laurens Van Houtven
By registration I meant stuff where we could put reminders that some code can be cleaned up now. Perhaps that means ticket, if there's some way to mark a ticket as being only relevant when we stop supporting $PYTHON_VERSION_WHATEVER? cheers lvh ___

Re: [Twisted-Python] Twisted Project Jobs Volunteer

2011-07-05 Thread Laurens Van Houtven
Hey, Cool, thanks for offering to chip in! I think buildbot management is more important, since I can manage github + wolfwood git mirrors pretty much on my own, and the launchpad mirror looks permanently up to snuff. cheers lvh ___ Twisted-Python

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-02 Thread Laurens Van Houtven
On Sat, Jul 2, 2011 at 11:27 PM, Glyph Lefkowitz gl...@twistedmatrix.comwrote: They can have a tool to make comments next to the code and it is less effort to apply patches and update branches to HEAD. This would be nice. Is it easy for the reviewee to look at all the comments in an

[Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Laurens Van Houtven
Hi, As some of you may already know (either through a backchannel or because you talked to me at Europython), there has been some talk about moving Twisted way from Trac+SVN to somewhere that isn't Trac+SVN. A lot of the devs do like SVN. My guess is that that's mainly because they don't

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Laurens Van Houtven
On Fri, Jul 1, 2011 at 12:48 PM, Tristan Seligmann mithra...@mithrandi.netwrote: I'm not sure I understand what you mean by aren't devs. Do you mean aren't Twisted developers? I don't see why someone who isn't a developer would particularly care what development tools Twisted uses. Yes,

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Laurens Van Houtven
On Fri, Jul 1, 2011 at 12:59 PM, Tim Allen screwt...@froup.com wrote: On the other hand, using git would probably complicate the build/review process: since Github repositories are (as far as I know) owned by individuals, you might not be able to set up access for multiple people, and hence

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Laurens Van Houtven
On Fri, Jul 1, 2011 at 2:14 PM, Itamar Turner-Trauring ita...@itamarst.orgwrote: On Fri, 2011-07-01 at 12:29 +0200, Laurens Van Houtven wrote: Unless someone is going to go all NO GITHUB IS TERRIBLE AND YOU ARE A BAD PERSON FOR EVEN SUGGESTING IT on me, maybe we can talk about planning

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Laurens Van Houtven
On Fri, Jul 1, 2011 at 12:42 PM, Jonathan Lange j...@mumak.net wrote: I support Twisted moving to a DVCS and to something better than Trac. I personally would prefer Twisted to use Launchpad. Some points: * Launchpad is much faster now that it was six months ago Launchpad's definitely

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Laurens Van Houtven
On Fri, Jul 1, 2011 at 3:17 PM, Jonathan Lange j...@mumak.net wrote: On Fri, Jul 1, 2011 at 2:08 PM, Laurens Van Houtven _...@lvh.cc wrote: On Fri, Jul 1, 2011 at 12:42 PM, Jonathan Lange j...@mumak.net wrote: ... * Launchpad is open source therefore patchable Yes, that's a good point

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Laurens Van Houtven
On Fri, Jul 1, 2011 at 3:23 PM, Thomas Hervé the...@free.fr wrote: Well, even not thinking about new developers, a DVCS will make the life of current ones easier. Even though we can start to use bzr, it's a bit clumsy IMHO. Also, apparently there are ways of using bzr-svn that confuse the

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Laurens Van Houtven
If the patch applies cleanly, pull requests can even be merged without involving git directly at all, from the Github web UI. cheers lvh ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Laurens Van Houtven
Itamar makes an excellent point. That probably is one of the worst problems we have right now. and it definitely needs to be addressed. Figuring out how code could end up not-in-the-attic sounds like part of the transition plan to me. I do, in fact, think Github means patches are less likely to

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Laurens Van Houtven
On Fri, Jul 1, 2011 at 6:24 PM, Thomas Hervé the...@free.fr wrote: Le 01/07/2011 16:42, Itamar Turner-Trauring a écrit : Well, that logic is a bit flawed though: you're kind of saying that we shouldn't use a better tool because it may bring us more contributors than we can handle. At the

<    1   2   3   >