LocalFS for Zope 2.7.1 released
LocalFS lets you deliver static files from your local file system.
As it seems that LocalFS is no longer maintained at sourceforge.net we at EasyLeading.org decided to keep this wonderfull Product up to date.
The new version uses a filestream_iterator implementation introduced with Zope2.7.1.
The major enhancement is to allow LocalFS to serve static files from the filesystem without first needing to read all file data into memory or explicitly chunking data from static files out via RESPONSE.write (both of which are slower than just letting medusa itself handle the output via a native producer).
If LocalFS can't import filestream_iterator it uses the old method to serve files. Therefore it is backward compatible to Zote2.6 and Zope2.7.0
This is free software and you can download it at:
Greetings Andreas Heckel
Comment
Fix for 2.9.3
Posted by:
cowtung
at
2006-07-03
Since OFS.content_types was depreciated from 2.9.3, this version of LocalFS is once again broken. And once again, you can fix it with a small change to the code. Open LocalFS.py, go to line 51 which reads...
from OFS.content_types import find_binary
... and change that line to ...
from zope.app.content_types import find_binary