Re: Putting non-text files into pyblosxom - is this filekicker.py?

Chris G <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On Tue, Jul 10, 2007 at 10:36:01PM -0700, Ryan Barrett wrote:
> On Tue, 10 Jul 2007, Chris G wrote:
> 
> >How can I put put some non-pyblosxom files into my pyblosxom hierachy?
> >
> >E.g. I want to put some .pdf files in there and link to them using the
> >wbgwiki.py plugin.  I also have some .jpg image files I'd like to use.
> >
> >Is the filekicker plugin capable of doing this sort of thing or do I
> >want something else?
> 
> sure, filekicker can do that. i haven't tested it with wbgwiki, but as long 
> as it gets the chance to cb_handle() the requests for the static files, it 
> should work fine.
> 
> from the docstring:
> 
> This plugin serves static files in the pyblosxom datadir. It looks for the 
> filename from the URL based at datadir. For example, if config['datadir'] 
> is '/home/ryanb/www/data', and a user requests 
> http://mysite.com/foo/bar.py, filekicker will send back the file 
> /home/ryanb/www/data/foo/bar.py. Its MIME type is inferred from its 
> extension.
> 
Just to report that this is doing exactly what I want.  I'm using it
with the wgbwiki.py plugin and my menu-creating plugin.  It means that
my 'menu' can include both pyblosxom .txt and .rst files *plus* any
other files such as .pdf and .jpg files.

-- 
Chris Green

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.