Homec4science

BibDocFile: preferred extension

Authored by Samuele Kaplun <samuele.kaplun@cern.ch> on Nov 15 2013, 11:11.

Description

BibDocFile: preferred extension

  • When guessing the extension of a file though the usage of the magic library and the mimetypes module, allow to specify the preferred extension for a given guessed mimetype in order to avoid picking up a random one from the multiple extensions proposed by the mimetype library. (closes #1619)
  • Introduces CFG_BIBDOCFILE_PREFERRED_MIMETYPES_MAPPING new configuration parameter in order to tune the above mentioned functionality.

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Reported-by: Tibor Simko <tibor.simko@cern.ch>

Details

Committed
Samuele Kaplun <samuele.kaplun@cern.ch>Dec 18 2013, 16:23
Parents
R3600:e07878ee26cb: installation: add h5py dependency
Branches
Unknown
Tags
Unknown

Event Timeline

Samuele Kaplun <samuele.kaplun@cern.ch> committed R3600:7fbbd28941d8: BibDocFile: preferred extension (authored by Samuele Kaplun <samuele.kaplun@cern.ch>).Dec 18 2013, 16:23