[Paste] Re: Static files

Top Page
Author: Sergey Schetinin
Date:  
To: Mike Orr
CC: Paste Users
Subject: [Paste] Re: Static files

Both StaticURLParser and DirectoryApp use FileApp for actual file
serving. The difference between them is that the former is by Ian and
the latter was added by me.

DirectoryApp
 * does not serve index.html files,
 * doesn't send any debug info in 404 responses,
 * isn't available via PasteDeploy
 * caches fileapp instances (which in turn cache file contents if it's small)
 * the implementation is also much shorter

I thought it was enough of a difference to add it there, to have a
smallish directory serving app next to fileapp.

It's also in pasteob.fileapp now:
http://code.google.com/p/pasteob/source/browse/trunk/pasteob/fileapp.py





On 2009-06-12, Mike Orr <sluggoster@???> wrote:
>
> Which is best for serving static files or directories from a Pylons controller,
> StaticURLParser or FileApp/DirectoryApp? They seem to do the same thing.
>
> --
> Mike Orr <sluggoster@???>
>
> >
>



-- 
Best Regards,
Sergey Schetinin

http://s3bk.com/ -- S3 Backup
http://word-to-html.com/ -- Word to HTML Converter

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Paste Users" group.
To post to this group, send email to paste-users@???
To unsubscribe from this group, send email to paste-users+unsubscribe@???
For more options, visit this group at http://groups.google.com/group/paste-users?hl=en
-~----------~----~----~----~------~----~------~--~---