Re: [Twisted-Python] Seeking advice on use of Perspective Broker

2009-09-17 Thread Lucas Taylor
On 9/17/09 1:31 PM, Arthur Pemberton wrote: > 2) How easy it to package Twisted for distribution on Windows system > (which would be inevitable) You can use py2exe to distribute your application as one or more executables. It is also possible to create NT services using the win32all package. Luc

Re: [Twisted-Python] Twisted FTP server fails on PASV

2009-09-17 Thread Stephen Thorne
On 2009-09-17, Slava Yanson wrote: > Here is part of ipconfig file: > > -A RH-Firewall-1-INPUT -m tcp -p tcp --dport 65000:65200 -j ACCEPT > -A RH-Firewall-1-INPUT -m udp -p udp --dport 65000:65200 -j ACCEPT > > And I just tried setting passivePortRange to that range and it still didn't > work. n

Re: [Twisted-Python] Twisted FTP server fails on PASV

2009-09-17 Thread Slava Yanson
Here is part of ipconfig file: -A RH-Firewall-1-INPUT -m tcp -p tcp --dport 65000:65200 -j ACCEPT -A RH-Firewall-1-INPUT -m udp -p udp --dport 65000:65200 -j ACCEPT And I just tried setting passivePortRange to that range and it still didn't work. netstat showed that port listening and it still di

Re: [Twisted-Python] Twisted FTP server fails on PASV

2009-09-17 Thread Steve Steiner (listsin)
On Sep 17, 2009, at 7:29 PM, Slava Yanson wrote: It just doesn't want to go past PASV. Spent past 3 hours trying to figure this one out. Any help is appreciated. Since PASV mode goes to higher ports (> 1023), is it possible that a firewall's at the server getting in the way? http://slack

[Twisted-Python] Twisted FTP server fails on PASV

2009-09-17 Thread Slava Yanson
It just doesn't want to go past PASV. Spent past 3 hours trying to figure this one out. Any help is appreciated. Log: 2009-09-17 16:26:56-0700 [-] Log opened. 2009-09-17 16:26:56-0700 [-] twisted.protocols.ftp.FTPFactory starting on * 2009-09-17 16:26:56-0700 [-] Starting factory 2009-09-17

Re: [Twisted-Python] Seeking advice on use of Perspective Broker

2009-09-17 Thread Brett Sheffield
Arthur Pemberton wrote: > On Thu, Sep 17, 2009 at 2:09 PM, Brett Sheffield wrote: >> It doesn't cover twisted.web and nevoew very well because the API was >> still shifting about then, but the rest seems pretty good. It was >> published in 2006. > > I know it was published in 2006, but 3 years c

Re: [Twisted-Python] Seeking advice on use of Perspective Broker

2009-09-17 Thread Arthur Pemberton
On Thu, Sep 17, 2009 at 2:09 PM, Brett Sheffield wrote: > Arthur Pemberton wrote: >>  1) Is the Twisted Matrix book published by Orielly relevant ie. updated >> enough? > > Yes.  I just read it and it has excellent Perspective Broker examples in > chapters 5 & 6 which got me to a flying start rec

Re: [Twisted-Python] An XMPP client with SSL support

2009-09-17 Thread Ralph Meijer
On Thu, Sep 17, 2009 at 04:33:43PM +0200, Ralph Meijer wrote: > On Wed, 2008-08-27 at 17:31 -0400, Pedro Sanchez wrote: Oh, ahum. That's quite the latency... -- Groetjes, ralphm ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://

Re: [Twisted-Python] Seeking advice on use of Perspective Broker

2009-09-17 Thread Brett Sheffield
Arthur Pemberton wrote: > 1) Is the Twisted Matrix book published by Orielly relevant ie. updated > enough? Yes. I just read it and it has excellent Perspective Broker examples in chapters 5 & 6 which got me to a flying start recently. Obviously you'll want to read the online docs too. It do

[Twisted-Python] Seeking advice on use of Perspective Broker

2009-09-17 Thread Arthur Pemberton
Good day, I have scanned through the docs a few times, and I am in need of some advice and explanation to determine if Twisted's Perspective Broker meetings my perceived needs What I am trying to do : create a client/server project where the server is a a typical access multiple data sources, enf

Re: [Twisted-Python] run queries in deffered, but not in transaction

2009-09-17 Thread Mark Visser
Matt Perry wrote: > would swallow any exceptions thrown by deferred1 and continue on to > create deferred2. If you did: > > d.addCallback(foo) > d.addCallback(bar) > d.addCallback(baz) > > then an exception in "foo" would break the whole callback chain. You can also use addBoth(), which adds a ca

Re: [Twisted-Python] run queries in deffered, but not in transaction

2009-09-17 Thread Matt Perry
That way works, but the original problem was that a failure in one of them was stopping the whole callback chain. Missing from my example (but present in a past example) was a try/except around the yield keyword. So: ... try: yield deferred1 except: pass ... try: yield deferred2 except:

Re: [Twisted-Python] An XMPP client with SSL support

2009-09-17 Thread Ralph Meijer
On Wed, 2008-08-27 at 17:31 -0400, Pedro Sanchez wrote: > Hello, > > I have a sample XMPP client with the following structure: > > from twisted.words.protocols.jabber import client, jid > from twisted.internet import reactor > ... > factory = client.basicClientFactory(myJid, myPasswd) > reactor.c

Re: [Twisted-Python] Using reactor with multiple processes

2009-09-17 Thread Phil Mayers
James Y Knight wrote: > On Sep 16, 2009, at 12:33 PM, David Yoakley wrote: >> Thanks Phil for the reference to ampoule. We will look at that >> next. We are still hoping to get the parent set up in such a way >> that whatever the forking :-) shared state is, it does not get >> established

Re: [Twisted-Python] run queries in deffered, but not in transaction

2009-09-17 Thread Amaury Forgeot d'Arc
Hello, 2009/9/17 Matt Perry : > Make sure you're using the @inlineCallbacks decorator and the yield > statement referenced previously.  Without those you're just adding several > callbacks to the same Deferred; with them, the function will wait until the > Deferred fires before continuing. > > def