

def work_retrieve(self, document):
    to_extension = document.get_requested_extension()
    if to_extension:
        converter = NewFileConverter(document.get_file_obj(), document.get_fullpath(), converter)
        (mimetype, new_file_obj) = converter.convert()
        document.set_mimetype(mimetype)
        document.set_file_obj(new_file_obj)
    return document

dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/dms_plugins/workers/transfer/convert.py Converter.work_retrieve/VarMisuse@41/55 `to_extension`->`converter`