Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download provider uses NamedTemporaryFile #274

Merged

Conversation

will-moore
Copy link
Member

See ome/omero-scripts#180

The Populate_Metadata script that uses DownloadingOriginalFileProvider needs to read the temp file with a specific encoder. By returning a NamedTemporaryFile, consumers can open the temp file themselves.

@dominikl
Copy link
Member

👍 Makes sense, good to merge. I would never have expected that tempfile.TemporaryFile() can create a file without a "visible" file name, Python's always good for a surprise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants