jonathanj / txspinneret

Collection of higher-level tools for building Twisted Web resources
MIT License
2 stars 3 forks source link

Allow returning a `FilePath` from Spinneret resources #14

Open jonathanj opened 10 years ago

jonathanj commented 10 years ago

This would be turned into a twisted.web.static.File resource.

mithrandi commented 9 years ago

One major issue with doing this is that twisted.web.static.File actually subclasses twisted.python.filepath.FilePath, so the obvious way of implementing this (using an isinstance check) would break any existing code that returns a File instance.