[Twisted-Python] Allow static.Data to be at the root

Moshe Zadka m at moshez.org
Tue May 13 06:47:48 EDT 2003

On Tue, 13 May 2003, "Matthias Urlichs" <smurf at smurf.noris.de> wrote:

> Here's a small patch to allow a twisted.web.static.Data element at the
> root of your web space.

This detracts functionality, not enhances it.
If you really want it, it's better to have a 

root = resource.Resource()
root.putChild('', static.Data('text/plain', 'hello world'))
Moshe Zadka -- http://moshez.org/
Buffy: I don't like you hanging out with someone that... short.
Riley: Yeah, a lot of young people nowadays are experimenting with shortness.
Agile Programming Language -- http://www.python.org/

More information about the Twisted-Python mailing list