[Twisted-Python] question : use existing tac file with tap.

Sayid Munawar ayik at freebsd.or.id
Sun Nov 17 08:43:48 MST 2013


Hi Bino, 

i _never_ write code using twisted (yet, i hope), but reading your question lead me to one (i think) example:

https://github.com/praekelt/vumi/blob/develop/vumi/servicemaker.py#L174

hope it helps 

-- 
Sayid Munawar
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Monday, 11 November 2013 at 3:15 PM, bino at indoakses-online.com wrote:

> Dear All.
> 
> Currently I have a single '.tac' file that use MultiService()
> 
> Ended with
> ----------------
> 
> #Create Application
> print 'create application'
> application = service.Application("Serial MultiService Example")
> #Creating Multi Service
> multiService = service.MultiService()
> ...
> ...
> multiService.setServiceParent(application)
> 
> --------------
> currently it works just fine
> 
> 
> Now, i need to to able to run it using some parameter from the commandline.
> I kne that I have to take 'tap' path.
> I read http://docs.huihoo.com/python/twisted/howto/tap.html but (thanks to
> my lame brain) failed to understand on how to implement this to my
> existing script.
> 
> Kindly please tell me how to do it or give me realy basic example on
> using/migrating tac file with Twisted Application Plugin.
> 
> Sincerely
> -bino-
> 
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com (mailto:Twisted-Python at twistedmatrix.com)
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20131117/42618373/attachment.html>


More information about the Twisted-Python mailing list