Re: [Twisted-Python] How to package a program that I'm running as twistd dmucs.py

2010-08-30 Thread Glyph Lefkowitz
On Aug 30, 2010, at 11:51 AM, Victor Norman wrote: > Can someone recommend the correct way to package up my application so that it > can be run by typing > > dmucsd > > ? > > Thanks. > > Vic The best way to do this is to write a twistd plugin (so your script can process its own arguments

Re: [Twisted-Python] How to package a program that I'm running as twistd dmucs.py

2010-08-30 Thread Jason J. W. Williams
I've typically accomplished this with a BASH script packaged with the app or an init.d script. -J On Mon, Aug 30, 2010 at 9:51 AM, Victor Norman wrote: > I am nearing the end of developing my application and am thinking about how > to package it up.  I have been testing it by running it this way

[Twisted-Python] How to package a program that I'm running as twistd dmucs.py

2010-08-30 Thread Victor Norman
I am nearing the end of developing my application and am thinking about how to package it up. I have been testing it by running it this way: twistd -ny dmucs.py I was hoping I could just rename my dmucs.py to dmucsd and then put this in the first line of the file: #!/bin/env twistd -ny (or w

Re: [Twisted-Python] timeout in agent

2010-08-30 Thread Pet
On Mon, Aug 30, 2010 at 1:56 PM, Itamar Turner-Trauring wrote: > On Mon, 2010-08-30 at 10:54 +0200, Pet wrote: >> Hello! >> >> I have modified Agent.request method (twisted.web.client.Agent) to >> pass timeout parameter to >> d = cc.connectTCP(host, port, timeout=timeout) >> >> but it looks like t

Re: [Twisted-Python] timeout in agent

2010-08-30 Thread Itamar Turner-Trauring
On Mon, 2010-08-30 at 10:54 +0200, Pet wrote: > Hello! > > I have modified Agent.request method (twisted.web.client.Agent) to > pass timeout parameter to > d = cc.connectTCP(host, port, timeout=timeout) > > but it looks like timeout is ignored (cbConnected is called). Is this > known issue? Are

Re: [Twisted-Python] Unhandled Deferred Error

2010-08-30 Thread shwetanka srivastava
Hi Thank you very much. After adding the errBack() code is working fine and there is no error entry in the log. Regards Shwetanka On Mon, Aug 30, 2010 at 3:00 PM, Godson Gera wrote: > Hi > > All the starpy API calls return a deferred object. Adding an errback is > just like adding errback to a

Re: [Twisted-Python] Unhandled Deferred Error

2010-08-30 Thread Godson Gera
Hi All the starpy API calls return a deferred object. Adding an errback is just like adding errback to any other deferred. df = agi.streamFile("somefile") df.addCallback(yourcallback) df.addErrback(yourerrback) It is no different from a deferred so it supports all the methods that a normal twist

[Twisted-Python] timeout in agent

2010-08-30 Thread Pet
Hello! I have modified Agent.request method (twisted.web.client.Agent) to pass timeout parameter to d = cc.connectTCP(host, port, timeout=timeout) but it looks like timeout is ignored (cbConnected is called). Is this known issue? Thanks! ___ Twisted-P