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

Clean up and refactor #2

Merged
merged 28 commits into from
Sep 29, 2022
Merged

Clean up and refactor #2

merged 28 commits into from
Sep 29, 2022

Conversation

pdelboca
Copy link
Member

@pdelboca pdelboca commented Sep 27, 2022

This PR cleans a little bit the code and uses more up-to-date CKAN practices in syntax and naming conventions.

Changes:

  • Run tests on PRs
  • Imports directly toolkit instead of calling p.toolkit
  • Tidy the imports
  • Some pep8 fixes
  • Clean some code used for compatibility with old versions
  • Create a custom render_jinja2 method to render body emails without depending on a request context
  • Replace deprecated h.truncate() method
  • Reduces dependency of g object in templates. (Using render's extra_vars)
  • It also adds support for CKAN 2.10. (Tests are failing due to this bug Fix CKAN registering only plugin's first blueprint ckan/ckan#7108)

@pdelboca pdelboca merged commit 6491add into master Sep 29, 2022
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.

1 participant