[Twisted-Python] Why does this not work?

Itamar Shtull-Trauring itamar at itamarst.org
Thu Dec 11 13:28:16 EST 2003


On Thu, 2003-12-11 at 12:03, Valentino Volonghi aka Dialtone wrote:

> #############################################
> MYPORT = 6000
> application = service.Application('dbi_face', uid=1000, gid=1000)
> f = DBUniversalService()
> serviceCollection = service.IServiceCollection(application)
> internet.TCPServer(MYPORT, f.getDBUniversalFactory()
>                    ).setServiceParent(serviceCollection)
> #############################################
> Are these last lines right or are they wrong?

Looks right. are you running it with twistd?

$ twistd -y myscript.py

See also twistd --help

-- 
Itamar Shtull-Trauring    http://itamarst.org
Looking for a job: http://itamarst.org/resume.html





More information about the Twisted-Python mailing list