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

Fix for MIME type ordering in renderers. #261

Merged
merged 4 commits into from
Jul 28, 2023
Merged

Conversation

dmichaels-harvard
Copy link
Contributor

@dmichaels-harvard dmichaels-harvard commented Jul 27, 2023

In renderers.py change the initialization of MIME_TYPES_SUPPORTED to be via Kent's project_defs mechanism, i.e. app_project().renderers_mime_types_supported(); and so there is also a new project/renderers.py module. Also factored out just the MIME type definitions into mime_types.py to ensure we don't run into circular dependencies or whatnot. Defaulted that value of this function (renderers_mime_types_supported) to be HTML first (like CGAP wants it); corresponding change in fourfront to make the order JSON first.

@willronchetti willronchetti merged commit 0c758d7 into master Jul 28, 2023
3 checks passed
@willronchetti willronchetti deleted the fix-mime-order branch July 28, 2023 16:41
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.

2 participants