def get_thumbnail_path(self, document, filename=True):
        # Support for old docrule
        new_filename = None
        new_docrule = None
        if document.old_docrule:
            new_filename = document.file_name
            new_docrule = document.docrule
            document.set_filename(document.old_name_code)
            document.docrule = document.old_docrule
        code_dir = self.filesystem.get_or_create_document_directory(document)
        thumbnail_directory = os.path.normpath(os.path.join(code_dir, self.thumbnail_folder))
        thumbnail_temporary = None

        if filename:
            thumbnail_temporary = os.path.normpath(os.path.join(thumbnail_directory, document.get_full_filename()))
        if document.old_docrule:
            document.file_name = new_filename
            document.docrule = new_docrule
        return thumbnail_temporary, thumbnail_directory
Returns a RPC ServerProxy object pointing to the PyPI RPC
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/dms_plugins/workers/transfer/thumbnails.py/ThumbnailsFilesystemHandler.get_thumbnail_path--crossover with--dataset/ETHPy150Open perone/stallion/stallion/main.py/get_pypi_proxy