[Twisted-Python] Allow static.Data to be at the root
Matthias Urlichs
smurf at smurf.noris.de
Sat Jun 21 05:21:30 MDT 2003
Hi, Moshe Zadka wrote:
> 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'))
... but it's OK to do essentially the same thing to t.w.static.File?
CVS: 2003-06-20 07:09:12
Make static.File used as a root resource work as expected when serving a file.
IMHO: Please do either both, or neither.
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf at smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
--
The State of California has no business subsidizing intellectual curiosity.
-- Ronald Reagan
More information about the Twisted-Python
mailing list