In data lunedì 23 luglio 2007, Ferran Jorba scribacchiaste dette parole:
> Hello Samuele,
> I don't know about this one, but I have to maintain a parallel one about
> graphic files (currently jpg, gif and png), so I can apply a different
> logic for URLs if they are images (typically for icons) or fulltext; see
> an early implementation at http://ddd.uab.cat/record/17654.
>
> Thanks,
>
> Ferran

Hi Ferran,
thanks for the advice. Meanwhile I'd just removed that hardcoded list about 
recognized extensions and just took the one coming from mimetypes module in 
Python. This list was just used by the submission engine in order to discover 
the format in general of a file, but the code was a bit broken (and was also 
missing pngs).
For the future when it will come to just graphics I will definitly take in 
account your list.
Best regards,
        Samuele

Reply via email to