[Twisted-web] deployment with twistd of simple web application

Axel Rau Axel.Rau at Chaos1.DE
Tue Nov 12 06:20:04 MST 2013


Am 08.11.2013 um 19:43 schrieb Axel Rau <Axel.Rau at chaos1.de>:
> 
> makeService expects a protocol factory, but I have only
> 	meteoFactory = Site(resource)
> How do I interface the former to the http protocol?
> 


After fixing my low-level Python errors (sorry for wasting you time), the attached plugin works out of the box with my original code:
---
resource = RootWeatherPage()
meteo_factory = Site(resource)
---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: meteo_plugin.py
Type: text/x-python-script
Size: 911 bytes
Desc: not available
URL: <http://twistedmatrix.com/pipermail/twisted-web/attachments/20131112/ae0dfd76/attachment.bin>
-------------- next part --------------

Next, I have to find a way to define a 2nd interface (IPv6) for TCPServer.

Axel
---
PGP-Key:29E99DD6  ? +49 151 2300 9283  ? computing @ chaos claudius



More information about the Twisted-web mailing list