cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <>
Subject RE: DirectoryGenerator and mime-types
Date Fri, 15 Mar 2002 12:59:12 GMT
> From: Thomas 'Dent' Mirlacher []
> hi list,
> i don't know if this is the proper list (but i guess you will give me
a hint
> if not :) to ask this question:
> i would like to add an attribute for each entry (file) in the output
> DirectoryGenerator generates.
> why? i'm working on a pet project to add the capability using
> in the directorylisting (well obviously this can also be used for
> galeries and other things ... thanks to the pipeline in cocoon)
> the problem: i don't know where to find the proper functions to
> the mime-type from a file (using its magic, and not the extension)

If I'm not mistaken, there is no such function. However, take a look at
ImageDirectoryGenerator which could be of help to you.

Also, take a look at ImageReader in the scratchpad.


> any help/hint (also flames) will be appreciated.
> 	++dent
> --
> in some way i do, and in some way i don't.

To unsubscribe, e-mail:
For additional commands, email:

View raw message