Re: [Twisted-Python] Using StandardIO and pipes.

2012-08-13 Thread Drew Smathers
On Mon, Aug 13, 2012 at 8:18 AM, Maxim Lacrima wrote: > Hi everyone! > > Thanks for the help! I used an attached example and after implementing > IHalfCloseableProtocol it works! Thanks a lot! > Hi Maxim, Sorry I do not have an immediate answer to your question but just wanted to let you that I

Re: [Twisted-Python] SFTP Server sample

2011-08-22 Thread Drew Smathers
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 find > any sample. > > Can someone give me some advise? > I don't believe there are any examples of building an SFTP server

Re: [Twisted-Python] LoopingCalls and unclean reactor

2011-03-16 Thread Drew Smathers
On Tue, Mar 15, 2011 at 9:55 PM, Brad Milne wrote: > Hi > I have a series of MultiService objects, with child Services. Some of these > services are TCPServers, for example, and others are my own objects > (extending from Service). > In the instance that I have a Service which controls a LoopingCa

Re: [Twisted-Python] Conch for file transfer?

2010-10-08 Thread Drew Smathers
On Fri, Oct 8, 2010 at 1:35 PM, Laurens Van Houtven wrote: > Hi, > > > Is there any documentation about using Conch for file transfer anywhere? > > I'm interested in doing a continuous deployment thing using it. That > means two parts: > 1) the ability to submit changes: the hard part here is file

Re: [Twisted-Python] Very interesting....

2010-04-28 Thread Drew Smathers
On Sat, Apr 24, 2010 at 1:20 PM, Jason J. W. Williams wrote: > same example coded in eventlet, gevent, twisted, tornado, nodejs, > thin+eventmachine http://gist.github.com/376416 (by @greut) > Surprising… > In the related blog post the author describes EvenMachine: "It looks like super clean Twi

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

2010-03-05 Thread Drew Smathers
On Thu, Mar 4, 2010 at 5:49 PM, Kevin Horn wrote: > > It's been a while, I know you were all waiting with baited breath... > > First a few fixes: > > - Thanks to Tim Allen and Steve Steiner, several theme issues were fixed. > This > fixes a few minor display bugs and should make pages validate

Re: [Twisted-Python] twisted xmpp-router component interface problem

2010-03-03 Thread Drew Smathers
On Wed, Mar 3, 2010 at 1:56 PM, Werner Thie wrote: > Hi > > Starting twistd xmpp-router and trying to connect to it with a component > from the wokkel examples > > """ > An XMPP Ping server as an external server-side component. > > This ping server assumes the domain C{'ping'}. > """ > import sys

Re: [Twisted-Python] What is the right way to pass variables from Site to Resource?

2010-03-01 Thread Drew Smathers
On Mon, Mar 1, 2010 at 11:47 AM, wrote: > I've got some global state and configuration information. It seems to me > that they ought to be members of my Site, but I don't see any obvious way in > a Resource.render_* to get the current Site. Neither Request nor Resource > have a instance or method

Re: [Twisted-Python] PyCon sprint 2010

2010-02-25 Thread Drew Smathers
On Thu, Feb 25, 2010 at 4:39 PM, Jonathan Lange wrote: > [snip] In particular, if you attended and your name isn't there, I want to hear > from you. > > Hey, I was there for the spring Monday night doing very little beyond getting acquainted with the review process and submitting a few patches f

Re: [Twisted-Python] multiprocessing capability?

2010-02-21 Thread Drew Smathers
On Sun, Feb 21, 2010 at 1:43 PM, Darren Govoni wrote: > Hi, > I looked at the source for the threads module and wondered if the current > Twisted supports Python's (2.6) multiprocessing threading? > If not, is there a stable package somewhere that patches Twisted to support > this? I saw one f

Re: [Twisted-Python] PyCon 2010 Twisted Sprint

2010-02-02 Thread Drew Smathers
On Tue, Feb 2, 2010 at 4:34 PM, Glyph Lefkowitz wrote: > > On Feb 2, 2010, at 4:13 PM, Drew Smathers wrote: > > > I plan on going Monday. This will be my first Twisted sprint, so don't > hold me to the fire on being super productive. > > Who told you that we hold s

Re: [Twisted-Python] PyCon 2010 Twisted Sprint

2010-02-02 Thread Drew Smathers
On Tue, Feb 2, 2010 at 1:19 AM, Brian Warner wrote: > I'll be there until wednesday afternoon. > -Brian > > > I plan on going Monday. This will be my first Twisted sprint, so don't hold me to the fire on being super productive. Not sure what I'll work on yet, but I'd like to revive the idea of

Re: [Twisted-Python] [ANN] Ampoule 0.2.0 released

2010-02-02 Thread Drew Smathers
On Tue, Feb 2, 2010 at 3:13 PM, Christopher Armstrong < ra...@twistedmatrix.com> wrote: > On Tue, Feb 2, 2010 at 1:59 PM, Valentino Volonghi > wrote: > > After a LOT of time I am finally, with Canonical Ltd. (Aaron Bentley) > help, happy to release a new version of Ampoule. > > > > The changelog

Re: [Twisted-Python] Memcache client issues

2009-12-18 Thread Drew Smathers
On Wed, Dec 16, 2009 at 2:34 PM, MārisR wrote: > Hello! > I'm trying to write small tcp server, which doing some stuff with memcache. > Everything was fine until I start it on production, after few minutes I got > to rollback to old one. My script got max open files limit :( After liitle > inspe

Re: [Twisted-Python] Memcache client issues

2009-12-18 Thread Drew Smathers
On Thu, Dec 17, 2009 at 5:17 AM, Reza Lotun wrote: > Hi, > > You might want to take a look at the txmemcache project: > https://launchpad.net/tx.memcache > > Please proceed with utmost caution if you choose to use tx.memcache - I wrote this for a small utility script for a project that got axed,

Re: [Twisted-Python] Storm ORM

2009-11-23 Thread Drew Smathers
On Fri, Nov 20, 2009 at 11:38 AM, Landreville wrote: > Hello, > > Does anyone use a good ORM with twisted? I'm looking for something very > simple, but works with twisted easily. > I saw this possible approach to using Storm with twisted > http://divmod.org/trac/wiki/NevowStormApproach but has any

Re: [Twisted-Python] PB vs JMS

2009-10-05 Thread Drew Smathers
On Mon, Oct 5, 2009 at 9:14 AM, wrote: > I looked at PB for an architecture with one client distributing some > processing to several servers. Now I came across JMS and I have seen that > using ActiveMQ with the Stomp protocol there would be a good support for > Python. > Surprising I couldn’t fi

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

2009-09-29 Thread Drew Smathers
On Tue, Sep 29, 2009 at 2:16 PM, Alec Matusis wrote: > I have been a long time Twisted user, and I do not know Erlang. > I run into this interesting comment in engineering notes on Facebook Chat > scalability: > > http://www.facebook.com/note.php?note_id=51412338919&comments > > “Leif K-Brooks >

Re: [Twisted-Python] Questions about adding documentation

2009-07-30 Thread Drew Smathers
On Thu, Jul 30, 2009 at 11:58 PM, Steve Steiner (listsin) wrote: > > On Jul 30, 2009, at 11:51 PM, Kevin Horn wrote: > >> Steve. >> >> Same thing happened to me.  In my case it was corrected by a page >> refresh. > > Yah, it's just a little scary when Twisted's own site does things like > this. >

Re: [Twisted-Python] How to debug an AMP connection?

2009-07-24 Thread Drew Smathers
On Fri, Jul 24, 2009 at 9:35 AM, Peter Westlake wrote: > Hello, > > I'm having trouble with an AMP connection that doesn't fire > the Deferred returned by callRemote. The AMP command copies > files from the client (called a "worker" in the code below) > to a server ("controller"). It sends a chunk

Re: [Twisted-Python] inlineCallbacksDecorator

2009-06-08 Thread Drew Smathers
On Sat, Jun 6, 2009 at 9:41 PM, Terry Jones wrote: > I try to avoid using inlineCallbacks. There are two cases where I will > happily use it though: when I write a method that would need more than a > few callback functions, and, more importantly, when the logical flow of a > method is non-trivial

Re: [Twisted-Python] Reactor callback from the wrong thread

2009-06-02 Thread Drew Smathers
On Fri, May 29, 2009 at 3:02 AM, Lars Ivar Igesund wrote: > Thanks for the tip, > > however - in which version was blockingCallFromThread added? It did > not wish to be imported from the version I installed via Ubuntu which > appears to be 2.5.0. (Bit confused about the version numbering though >

Re: [Twisted-Python] Automatic test for Twisted

2009-05-28 Thread Drew Smathers
On Thu, May 28, 2009 at 4:24 PM, Juanjo Conti wrote: > Hi, > > is there a way to write sort of unittest for Twisted and run them? > Yes, with twisted.trial: http://twistedmatrix.com/projects/core/documentation/howto/testing.html -Drew ___ Twisted-Pyt

Re: [Twisted-Python] Another approach to allowing __init__ to work with Deferreds

2009-05-11 Thread Drew Smathers
On Mon, May 11, 2009 at 12:19 PM, Terry Jones wrote: > I posted to this list back in Nov 2008 with subject: > A Python metaclass for Twisted allowing __init__ to return a Deferred > > Briefly, I was trying to find a nice way to allow the __init__ method of a > class to work with deferreds in such

Re: [Twisted-Python] how do i do that

2009-05-07 Thread Drew Smathers
On Tue, May 5, 2009 at 6:39 AM, wrote: > hey, > i'm quite new in python and twisted and did things wrong from the start now i > have to reconsider my prog. > first i thought of an easier example with almost the same functionality. > functionality: client connects, sends info, all infos from all

Re: [Twisted-Python] addCallback0 convenience method

2009-05-04 Thread Drew Smathers
On Mon, May 4, 2009 at 6:26 AM, Terry Jones wrote: > There are two minor niggles I frequently run into when writing code with > deferreds and callbacks: > >  1. I very often write callbacks that ignore the incoming result: I tend to >    write this as def cb(_): ... > >  2. I sometimes write funct

Re: [Twisted-Python] xmlrpc - Possable failure to understand async concept

2009-04-24 Thread Drew Smathers
On Fri, Apr 24, 2009 at 2:28 AM, Nathan wrote: > On Thu, Apr 23, 2009 at 9:34 PM, Tim Allen wrote: >> Tim Hughes wrote: >>> Am I completly missing the point here or is there something incorrect with >>> my code. >> >> Yes, it seems you have missed the point somewhere. >> >>> def blocking_met

Re: [Twisted-Python] New user - plugin question

2009-04-06 Thread Drew Smathers
On Mon, Mar 30, 2009 at 6:27 PM, tim wylie wrote: > Hello, >    I'm a long time linux/python user who's just now starting to use > twisted.  I am looking for advice more than anything specific.  We're > working on a small game/etc server that has several small games that can be > played between us

Re: [Twisted-Python] Question about Descriptors and SelectReactor

2009-04-06 Thread Drew Smathers
On Sat, Apr 4, 2009 at 6:04 PM, Andrew Francis wrote: > > Hi: > > Perhaps this question has been asked before but is there a limit to the > number of descriptors the SelectReactor can handle? Is this a function of the > operating system? > I would say a function of the operating system - or spe

Re: [Twisted-Python] twisted and logging

2009-04-04 Thread Drew Smathers
On Fri, Apr 3, 2009 at 10:08 AM, Fabrizio Mancini wrote: > Hi, > i'm using the package twisted.python.log to log messages. Till now, it's all > ok, but with the standard logging package from python i had setup a logging > system that logged normal logs to one file, error logs to a separete files,

Re: [Twisted-Python] twistd tap file are not created

2009-03-09 Thread Drew Smathers
On Mon, Mar 9, 2009 at 8:02 AM, Pet wrote: > Hello, > > I'm trying an example from twisted book and when I run this: > twistd -n reverse_app.py > > application works, but no .tap file is created > Are you sure the book states you can build tap files with twistd? mktap is the program for that. No

Re: [Twisted-Python] How to write (network) integration tests with Twisted?

2009-01-26 Thread Drew Smathers
On Mon, Jan 26, 2009 at 4:02 PM, Alessio Pace wrote: > Hi, > > I would like to put in my suite of tests some integration tests which deal > with running some exchange of messages among 2 endpoints (bound locally on > the same machine on 2 different ports). > Trial allows you to return a Deferred,

Re: [Twisted-Python] [Q] multi-process chat client and poller

2009-01-13 Thread Drew Smathers
On Tue, Jan 13, 2009 at 4:11 PM, V S P wrote > Hi, thank you for the correction on how to use Ampula. > > Naming service serves > really as a 'discovery' tool -- and then the participating > components talk to each other. When new component comes > on online, it registers, and the Naming Service

Re: [Twisted-Python] Looping

2009-01-05 Thread Drew Smathers
On Sun, Jan 4, 2009 at 11:23 PM, Robert Hancock wrote: >> How many urls are in url_tuples? > 4 - 32 >> Is there a reason why you're using just one deferred? > What is the advantage of using more? > Concurrency. -Drew ___ Twisted-Python mailing list Tw

Re: [Twisted-Python] Re: How is happened?

2008-12-22 Thread Drew Smathers
On Mon, Dec 22, 2008 at 6:33 AM, Phil Mayers wrote: > biziap biziap wrote: >> >> >> 2008/12/22 biziap biziap mailto:fet...@gmail.com>> >> >>I am trying to migrate to web2. And find the "OldRequestAdapter". >>What I did is callling: >> >> Any hints are appericated. >> > > 1. Ask on the twi

Re: [Twisted-Python] python properties in twisted don't work

2008-12-18 Thread Drew Smathers
Protocol is an old-style class - doesn't inherit from object - so property won't work in that context. This won't be a problem in python 3 - old-style/new-style classes are consolidated. -Drew On Thu, Dec 18, 2008 at 8:35 AM, Gabriel Rossetti wrote: > Hello everyone! > > I have a problem, if I

Re: [Twisted-Python] Please test Twisted 8.2.0pre2 and tell me whether it works

2008-11-25 Thread Drew Smathers
On Thu, Nov 20, 2008 at 8:11 PM, Christopher Armstrong <[EMAIL PROTECTED]> wrote: > I just uploaded 8.2.0pre2 tarballs, which include one bugfix since > 8.2.0pre1 which was deemed important enough to be backported: > > - TLS Session Tickets are now disabled by default, allowing connections to >