Re: [Twisted-Python] Creating a daemon from my application

2010-03-15 Thread gary clark
=service.Application('nfdm') service=get_service() service.setServiceParent(application) Thats better. --- On Mon, 3/15/10, gary clark wrote: > From: gary clark > Subject: Re: [Twisted-Python] Creating a daemon from my application > To: "Twisted general discussion" > Date: Mond

Re: [Twisted-Python] Creating a daemon from my application

2010-03-15 Thread gary clark
=service.Application('nfdm') service=get_service() service.setServiceParent(application) --- On Mon, 3/15/10, gary clark wrote: > From: gary clark > Subject: Re: [Twisted-Python] Creating a daemon from my application > To: "Twisted general discussion" > Date: Monday,

Re: [Twisted-Python] Creating a daemon from my application

2010-03-15 Thread gary clark
is: File "./nfddaemon.tac", line 12, in service.setServiceParent(application) exceptions.AttributeError: 'Port' object has no attribute 'setServiceParent' Thanks, Garyc --- On Mon, 3/15/10, Reza Lotun wrote: > From: Reza Lotun > Subject:

Re: [Twisted-Python] Creating a daemon from my application

2010-03-15 Thread Reza Lotun
On Mon, Mar 15, 2010 at 6:03 PM, gary clark wrote: > Yeh I have to install them and create a setup.py to find the path. You only need to set your PYTHONPATH environment variable. e.g. $ export PYTHONPATH=/path/to/dir/containing/code -- Reza Lotun mobile: +44 (0)7521 310 763 email: rlo...@gma

Re: [Twisted-Python] Creating a daemon from my application

2010-03-15 Thread gary clark
Yeh I have to install them and create a setup.py to find the path. --- On Mon, 3/15/10, gary clark wrote: > From: gary clark > Subject: Re: [Twisted-Python] Creating a daemon from my application > To: "Twisted general discussion" > Date: Monday, March 15, 2010, 12

Re: [Twisted-Python] Creating a daemon from my application

2010-03-15 Thread gary clark
n Mon, 3/15/10, gary clark wrote: > From: gary clark > Subject: Re: [Twisted-Python] Creating a daemon from my application > To: "Twisted general discussion" > Date: Monday, March 15, 2010, 11:14 AM > Thanks Reza I wil give it a crack. > > Much appreciated, > Garyc

Re: [Twisted-Python] Creating a daemon from my application

2010-03-15 Thread gary clark
Thanks Reza I wil give it a crack. Much appreciated, Garyc --- On Mon, 3/15/10, Reza Lotun wrote: > From: Reza Lotun > Subject: Re: [Twisted-Python] Creating a daemon from my application > To: "Twisted general discussion" > Date: Monday, March 15, 2010, 10:35 AM

Re: [Twisted-Python] Creating a daemon from my application

2010-03-15 Thread Reza Lotun
Hi, > I want to create a twisted daemon from my application: ... You want to use twistd. See http://twistedmatrix.com/documents/current/core/howto/basics.html#auto1 The process is roughly: 1) create a myapp.tac file which essentially loads in your server and wraps it in an application 2) run so

[Twisted-Python] Creating a daemon from my application

2010-03-15 Thread gary clark
Hello, I want to create a twisted daemon from my application: if __name__ == '__main__': import nfdprocess, sys log.startLogging(sys.stdout) serverContext = ServerContextFactory() serverContext.protocol = nfdprocess.HandlePacket port =int(sys.argv[1]) checkT = checkTables(