filekicker

For the impatient:
  Download filekicker 0.2
  PyBlosxom home page
  PyBlosxom plugin registry

Filekicker is a PyBlosxom plugin that serves static files. The file to serve is determined by the URL path and the datadir configuration option. The MIME type is inferred from the file’s extension.

For example, if datadir is set in config.py like so:

py['datadir'] = '/home/ryanb/www'

and the user requests this url:

http://mysite.org/videos/shovelglove.mov

filekicker will send /home/ryanb/www/videos/shovelglove.mov to the client, if it exists, with the MIME type video/quicktime. If it doesn’t exist, filekicker will let pyblosxom handle the request.

Filekicker is different from, but related to, plugins such as pystaticfile, pyinclude, and imagekicker. It’s basically a generalization of imagekicker, which inspired its name.

Filekicker is copyright 2006 Ryan Barrett, and is distributed under the GPL.

Leave a Reply

Your email address will not be published.