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
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
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
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
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
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
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
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