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

Jinja2.10 + handle StandardError from processing #2553

Merged
merged 4 commits into from
Feb 5, 2018

Conversation

matthewrmshin
Copy link
Contributor

Close #2497. Fix #2550.

@matthewrmshin matthewrmshin added this to the next release milestone Jan 22, 2018
@matthewrmshin matthewrmshin self-assigned this Jan 22, 2018
@matthewrmshin
Copy link
Contributor Author

(1st changeset upgrades the external Jinja2 library from 2.9.6 to 2.10 (for #2497). The 2nd changeset tidies things up and fixes #2550.)

#-------------------------------------------------------------------------------
purge_suite $SUITE_NAME

cat >'suite.rc' <<'__SUITERC__'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete lines 44-51?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Member

@hjoliver hjoliver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, but just need to update the Jinja2 version mentioned under "Software Packages Bundled with Cylc" in the User Guide (installation section), and section 9.7.5 (Jinja2 Variable Scope) needs to be updated to show how to use the new namespace feature to access out-of-scope variables (actually our existing example has an error in it too - COUNT vs FOO)

Version and scope advice.
@sadielbartholomew
Copy link
Collaborator

(new commit reviewed and approved)

@hjoliver hjoliver merged commit 743510c into cylc:master Feb 5, 2018
@matthewrmshin matthewrmshin deleted the jinja2.10 branch February 5, 2018 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants