[Twisted-Python] confusion with general web serving
Jonathan Vanasco
twisted-python at 2xlp.com
Mon Apr 16 17:05:49 MDT 2007
On Apr 15, 2007, at 7:45 AM, Phil Mayers wrote:
> Jonathan Vanasco wrote:
>> i'm missing a key piece of connectivity here:
>> i'm building a twisted daemon to serve files. right now it will
>> serve off a local structure, in the future it will do that +
>> handle proxying to s3.
>> I stripped out all the app specific code below. my issue is that
>> i can't figure out how to display a file on the system for a url,
>> short of slurping it
>> i thought static.File would have soemthing to do with it, but I
>> can't figure out how to get it into the http.Request.process routine.
>
> You're asking on the wrong list really - you should ask on twisted-web
>
> Your problem is that you're trying to implement the HTTP protocol.
> Don't do that, it's not needed. You need to hook the protocol up to
> a "site" into which you can put components.
>
> This is well documented. See:
>
> http://twistedmatrix.com/projects/web/documentation/howto/using-
> twistedweb.html#auto2
Thanks, I''ll check out the other list.
I hadn't read that howto -- just the oreilley book and the overall
design of the daemn seemed more inline with using the protocol ( as
I'll mixing up proxy , static, and dynamic files ) than the web
examples in the book.
// Jonathan Vanasco
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
| SyndiClick.com
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - -
More information about the Twisted-Python
mailing list