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

Use jinja2 when populating metadata maps (rebased onto metadata53) #5226

Closed
wants to merge 3 commits into from
Closed

Use jinja2 when populating metadata maps (rebased onto metadata53) #5226

wants to merge 3 commits into from

Conversation

atarkowska
Copy link
Member

This is the same as gh-4896 but rebased onto metadata53.


What this PR does

The IDR bulk-annotation -> map-annotations process involves building URLs. Previously these were simple identifiers, but now they may include phrases including characters which need to be escaped when used in a URL. This PR now uses the Jinja templating module if it's installed, so standard Jinja2 filters such as {{ value | urlencode }} can be used.

Testing this PR

Current use case: Mapr @aleksandra-tarkowska which creates mapr URLs with spaces.

Potential issues

This adds a new optional dependency, jinja2, to OMERO.py. Should it be made mandatory along with yaml in order to keep things clearer?

@atarkowska
Copy link
Member Author

--rebased-from #4896

@atarkowska atarkowska closed this Apr 4, 2017
@atarkowska atarkowska deleted the rebased/metadata53/populate-metadata-jinja2 branch April 4, 2017 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants