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

2012-10-22 Thread Jasper St. Pierre
On Sun, Oct 21, 2012 at 11:00 PM, Glyph wrote: > On Oct 21, 2012, at 7:45 PM, Julian Berman wrote: > > This seems like a pretty small benefit; adding a new dependency affects lots > of people and introduces a new point of failure in the installation process, > especially for Windows users who alr

Re: [Twisted-Python] git repo maintenance

2012-10-21 Thread Jasper St. Pierre
On Mon, Oct 22, 2012 at 12:05 AM, Glyph wrote: > > On Oct 21, 2012, at 11:54 AM, Jasper St. Pierre > wrote: > > On Sun, Oct 21, 2012 at 2:48 PM, wrote: > > On 06:37 pm, jstpie...@mecheye.net wrote: > > On Sun, Oct 21, 2012 at 2:30 PM, wrote: > > *snip* >

Re: [Twisted-Python] git repo maintenance

2012-10-21 Thread Jasper St. Pierre
On Sun, Oct 21, 2012 at 2:48 PM, wrote: > On 06:37 pm, jstpie...@mecheye.net wrote: >>On Sun, Oct 21, 2012 at 2:30 PM, wrote: >> >>*snip* >>>While I'm sympathetic to toolchain woes, I can't help but wonder if >>>you're being really honest here (with yourself, at least). Running >>>"svn >>>diff

Re: [Twisted-Python] git repo maintenance

2012-10-21 Thread Jasper St. Pierre
On Sun, Oct 21, 2012 at 2:30 PM, wrote: *snip* > While I'm sympathetic to toolchain woes, I can't help but wonder if > you're being really honest here (with yourself, at least). Running "svn > diff" may make you feel bad inside, because svn isn't the latest cool > toy, but a *hurdle*? It's ju

Re: [Twisted-Python] implementing NAMES in IRC

2012-09-11 Thread Jasper St. Pierre
On Tue, Sep 11, 2012 at 9:43 AM, wrote: > On 10:49 am, mithra...@mithrandi.net wrote: >>On Tue, Sep 11, 2012 at 6:05 AM, Glyph wrote: >>>Such a bug may already exist - if you wouldn't mind, would you search >>>for >>>it, and if you can't find it, file a new one? >> >>I don't know if there's an e

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

2012-07-27 Thread Jasper St. Pierre
Why are compilers and MSVC++ relevant to six as a new dependency? It consists of one .py file. On Fri, Jul 27, 2012 at 7:32 AM, Tobias Oberstein wrote: >>>Even having full access to MSDN, it can be incredibly obscure to discover >>>which Python version goes with which Visual Studio product. (So

Re: [Twisted-Python] ANN: Twisted DBus 1.0

2012-07-03 Thread Jasper St. Pierre
On Tue, Jul 3, 2012 at 2:08 AM, Tom Cocagne wrote: > For anyone interested in taking a look, I've just released a > native-Python implementation of the DBus protocol for Twisted. The > intent of the implementation is to provide Twisted applications with a > full-featured DBus API that is consisten

Re: [Twisted-Python] question : dbus for twistd application framework

2012-05-30 Thread Jasper St. Pierre
On Wed, May 30, 2012 at 5:24 PM, Barry Warsaw wrote: > On May 28, 2012, at 11:22 PM, Jasper St. Pierre wrote: > >>Note that dbus-python (and libdbus-1, and libdbus-glib) is deprecated. >>The recommended solution is to use GDBus. > > Is it?  dbus-python seems like a heal

Re: [Twisted-Python] question : dbus for twistd application framework

2012-05-28 Thread Jasper St. Pierre
All you should need to do is install the glib reactor. Note that dbus-python (and libdbus-1, and libdbus-glib) is deprecated. The recommended solution is to use GDBus. See http://developer.gnome.org/gio/stable/ch30.html On Mon, May 28, 2012 at 11:03 PM, bino oetomo wrote: > Dear all ... > > I ne

Re: [Twisted-Python] HomeMatic - xmlrpc twisted !!

2012-05-25 Thread Jasper St. Pierre
ClientCreator needs a protocol. See: http://docs.huihoo.com/python/twisted/howto/clients.html On Fri, May 25, 2012 at 5:27 AM, vinod kumar wrote: > Hi everyone, > > I'm trying to connect to homematic server at address '192.168.1.251' > and port '2001'. I have a sample twisted server and cli

Re: [Twisted-Python] Synchronous calls using Twisted?

2012-05-16 Thread Jasper St. Pierre
The point of blockingCallFromThread is as a last resort when interfacing with a synchronous API that can't be replaced, like the DBAPI. It fools Twisted into thinking an external synchronous API is asynchronous, by carefully punting it to a new thread. I don't understand why you can't make Django

Re: [Twisted-Python] feedback on next version of Fireshark using twisted framework....

2012-05-03 Thread Jasper St. Pierre
You seem to have some indentation issues. You have a random assortment of Python style issues (some lines end with a semicolon). You use 'foo' + '/' + 'bar' to generate paths. While not evil (I think all major platforms will support that and do the translation on their own), you're better off using

Re: [Twisted-Python] regarding callbacks.

2012-04-30 Thread Jasper St. Pierre
On Mon, Apr 30, 2012 at 4:15 PM, Glyph wrote: > On Apr 30, 2012, at 4:57 AM, moses dsouza wrote: > > I don't think so.  Most of what Guido wants is already available via > inlineCallbacks, and the drawbacks of using that are documented pretty well > in the comments there.  I also have some issue

Re: [Twisted-Python] Basic Resource Tree question

2012-03-14 Thread Jasper St. Pierre
This probably isn't the proper way to do it, but it should work: root = resource.Resource() root.putChild('terms', Terms()) root.putChild('profile', Profile()) root.putChild('', IndexPage()) On Wed, Mar 14, 2012 at 5:46 AM, Lusana Ali wrote: > Hi, > > Im trying to setup just a ve

Re: [Twisted-Python] Anyone still using Python 2.5?

2012-03-04 Thread Jasper St. Pierre
Do we expect that people will use new releases of Twisted with Maemo and Python 2.5? On Mon, Mar 5, 2012 at 2:19 AM, Yaroslav Fedevych wrote: > On 05.03.2012 06:15, Itamar Turner-Trauring wrote: >> If you are using Python 2.5, what is the constraint keeping you there? >> There's Ubuntu LTS 8.04 -

Re: [Twisted-Python] Regression in Gtk2 support testing

2012-02-18 Thread Jasper St. Pierre
The problem is that both modules cannot be imported simultaneously, and that's not easily fixable (there's several barriers in there). To test both you would have to run each test in a subprocess. Maybe you can have a decorator to run a test in a subprocess. On Sat, Feb 18, 2012 at 3:19 PM, Itamar

Re: [Twisted-Python] telnet works, why wont this client/protocol test?

2012-01-12 Thread Jasper St. Pierre
If you really want: from twisted.protocols.basic import LineReceiver class LFLineReceiver(LineReceiver): delimiter = '\n' I'm assuming that it being '\r\n' by default is because more of the protocols that use LineReceiver use '\r\n' as their delimiter. It's not entirely hard to s

Re: [Twisted-Python] Website visual improvements

2011-11-07 Thread Jasper St. Pierre
On Mon, Nov 7, 2011 at 9:53 AM, Jonathan Jacobs wrote: > On Mon, Nov 7, 2011 at 16:31, Jasper St. Pierre wrote: >> Yes, the cloud's arrow looks a little too green. Making it more >> green-yellow like the original download arrow might be better. > > For what it's w

Re: [Twisted-Python] Website visual improvements

2011-11-07 Thread Jasper St. Pierre
On Mon, Nov 7, 2011 at 9:13 AM, anatoly techtonik wrote: > On Sun, Nov 6, 2011 at 8:51 PM, Jonathan Jacobs > wrote: >> Hello, >> I recently volunteered to make some visual improvements to the Twisted Trac >> website. I received a lot of good feedback and suggestions from the IRC >> channel, most

Re: [Twisted-Python] Twisted vs jQuery Deferreds (was Re: RPC design questions)

2011-08-24 Thread Jasper St. Pierre
Note that as far as I know, MochiKit isn't actively developed anymore. Google's Closure has a fork of MochiKit's Deferred's, which seems to incorporate some of Dojo's code as well. http://code.google.com/p/closure-library/source/browse/trunk/third_party/closure/goog/mochikit/async/ On Wed, Aug

Re: [Twisted-Python] Twisted vs jQuery Deferreds (was Re: RPC design questions)

2011-08-24 Thread Jasper St. Pierre
As far as I know, Dojo's Deferreds are a direct port of Twisted's. On Wed, Aug 24, 2011 at 7:30 PM, Tobias Oberstein wrote: > Found something: it seems in jQuery 1.6 they have introduced something which > corresponds > more closely to Twisted Deferreds callback/errback chains: > > //

Re: [Twisted-Python] SFTP Server sample

2011-08-22 Thread Jasper St. Pierre
What about twisted.conch.ssh.filetransfer? Is that not SFTP? On Mon, Aug 22, 2011 at 3:36 PM, Drew Smathers wrote: > On Fri, Aug 19, 2011 at 2:43 PM, Osborn Chan wrote: >> Hi, >> >> I am a newbie in twisted and python. >> I would like to create a python SFTP server with twisted, but I cannot fin

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

2011-07-05 Thread Jasper St. Pierre
On Tue, Jul 5, 2011 at 5:02 AM, Alessandro Dentella wrote: > On Tue, Jul 05, 2011 at 03:42:04AM -0400, Jasper St. Pierre wrote: >> re: Mercurial, I didn't like it when I used it. If someone can tell me >> how to do this[3] in hg, I'd be more inclined to play along. And t

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

2011-07-05 Thread Jasper St. Pierre
Pretty much all of those can be supported with GitHub: they can POST to a generic website as a commit hook[0], along with a number of other integrated services[1]. The only thing that I can think of is that GitHub issues doesn't have hooks, so we'd have to poll if we wanted an IRC bot for GitHub i

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

2011-07-01 Thread Jasper St. Pierre
What data do you care about? Wikis and code are in git repositories, and they have a very exhaustive API[0] for pretty much everything else. On Sat, Jul 2, 2011 at 12:53 AM, Mikhail Terekhov wrote: > On Fri, Jul 1, 2011 at 8:14 AM, Itamar Turner-Trauring > wrote: >> >> Unless I'm mistaken, Githu

Re: [Twisted-Python] jQuery.Deferred - why did they have to go and change the interface?

2011-06-27 Thread Jasper St. Pierre
Not only that, but it doesn't do callback chaining, which is a huge disappointment. On Mon, Jun 27, 2011 at 5:53 PM, Richard Wall wrote: > I'm in the process of switching some of my Javascript code from > MochiKit.Async.Deferred to the recently introduced jQuery.Deferred. > > Does anyone else hat

Re: [Twisted-Python] Twisted training slides

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

Re: [Twisted-Python] running several services from a single app

2011-03-31 Thread Jasper St. Pierre
The factory for twisted.web.resource Resources is twisted.web.server.Site On Thu, Mar 31, 2011 at 4:45 AM, Aljoša Mohorović < aljosa.mohoro...@gmail.com> wrote: > now i looking at adding an wsgi app to this setup. > i'm reading > http://twistedmatrix.com/documents/current/web/howto/web-in-60/wsgi

Re: [Twisted-Python] Deferred documentation.

2011-03-30 Thread Jasper St. Pierre
The problem that I have is that errback flow is awkward... the main difference is that addCallbacks will call the errback if its own callback fails, right? I can only see that really being useful by accident. On Wed, Mar 30, 2011 at 11:09 AM, Christopher Armstrong < ra...@twistedmatrix.com> wrote:

Re: [Twisted-Python] Deferred documentation.

2011-03-29 Thread Jasper St. Pierre
; really want the idiots guide I think you need animated diagrams, or > something, but I don't see that happening. > > Rgds, > vokoda > > Jasper St. Pierre wrote: > > Glyph Lefkowitz > > ___ > Twisted-Python maili

Re: [Twisted-Python] Deferred documentation.

2011-03-28 Thread Jasper St. Pierre
I'm really tired... the 'demo server' program is at http://p.mecheye.net/deferred-server.py/0 I coded it up in like 10 minutes. Definition of quality right there, yo. Hopefully no more noise tonight. On Mon, Mar 28, 2011 at 9:14 PM, Jasper St. Pierre wrote: > I'm tired

Re: [Twisted-Python] Deferred documentation.

2011-03-28 Thread Jasper St. Pierre
I'm tired. Link dump: http://magcius.mecheye.net/twisted/DeferHowTo-Fixup.html http://magcius.mecheye.net/twisted/DeferHowTo-Fixup.lore oldies are at http://magcius.mecheye.net/twisted/DeferHowTo-Fixup-v1.html http://magcius.mecheye.net/twisted/DeferHowTo-Fixup-v1.lore comments, etc. __

Re: [Twisted-Python] prerelease preview predocumentation

2011-03-28 Thread Jasper St. Pierre
Seems to be the Trac version of jQuery overwriting the one that docutils has custom stuff in. On Mon, Mar 28, 2011 at 9:35 AM, Kevin Horn wrote: > > > On Sun, Mar 27, 2011 at 9:19 PM, Glyph Lefkowitz > wrote: > >> On Mar 27, 2011, at 10:09 PM, Tim Allen wrote: >> >> I'm not sure if it's not fin

Re: [Twisted-Python] Deferred documentation.

2011-03-28 Thread Jasper St. Pierre
OK, I'm already making a lot of these changes, I should have a new version Up Soon (TM). > Placeholders. > > Placeholders for what, though? > Placeholders for that magic lib, that I think I'm going to stop looking for and say, "demonstration purposes only" How do they use it? Why is it relevant

Re: [Twisted-Python] Deferred documentation.

2011-03-25 Thread Jasper St. Pierre
Big wall of text incoming. If you're going to read any part of this email, search for *IMPORTANT* and read that part. Right now I'm stuck at creating a simple example for "deferred dependencies". On Tue, Mar 22, 2011 at 10:03 PM, Glyph Lefkowitz wrote: > On Mar 21, 2011

Re: [Twisted-Python] Deferred documentation.

2011-03-23 Thread Jasper St. Pierre
What about Mattel? http://itre.cis.upenn.edu/~myl/languagelog/archives/002892.html On Wed, Mar 23, 2011 at 1:07 PM, Glyph Lefkowitz wrote: > > On Mar 23, 2011, at 9:24 AM, Kevin Horn wrote: > > > On Tue, Mar 22, 2011 at 9:03 PM, Glyph Lefkowitz > wrote: >> >> Why is Twisted's right hand blue?  

Re: [Twisted-Python] Deferred documentation.

2011-03-22 Thread Jasper St. Pierre
(I screwed up my mailman preferences accidentally, so this is formatted a bit haphazard from copy/paste) > Thank you for tackling the impossible. Thank you for the encouragement. I'm curious if you read both documents, and if you had a preference toward one or the other. I hopefully only want to

[Twisted-Python] Deferred documentation.

2011-03-21 Thread Jasper St. Pierre
On IRC, exarkun, glyph, spiv and idnar encouraged me to do a bit of work on the Defer documentation. I kept get confused between the things like returning a Deferred from a callback and chainDeferred, which I found out wasn't that useful: I suppose it's useful for "forking" a deferred you have a