Skip to content

Fix/fix webassets#21

Merged
bellisk merged 16 commits intoliip:masterfrom
opendata-swiss:fix/fix-webassets
Dec 3, 2025
Merged

Fix/fix webassets#21
bellisk merged 16 commits intoliip:masterfrom
opendata-swiss:fix/fix-webassets

Conversation

@bellisk
Copy link
Copy Markdown
Collaborator

@bellisk bellisk commented Nov 10, 2025

No description provided.

bellisk and others added 16 commits August 7, 2025 11:19
feat: Don't use six, now we only support Python 3
…ick-interface

feat: Update cli commands to use click
Copied from ckanext-harvest's CLI commands that ultimately send emails.

We use ckan.lib.base.render to render email contents as HTML, and this function requires a request context. All other kinds of emails we send are prompted by a request (e.g. clicking on a subscribe or management link) so the request context exists, but when we prompt email sending with a CLI command, we need to create this context beforehand.

It looks a bit odd to use the 'test_request_context' method here, but Flask prefers that 'request_context' is only used when an actual request is handled and external code uses 'test_request_app'.
…quest-context-for-sending-notification-emails

fix: Create Flask request context in CLI send_any_notifications command
@bellisk bellisk merged commit 9f452e4 into liip:master Dec 3, 2025
3 checks passed
@bellisk bellisk deleted the fix/fix-webassets branch December 3, 2025 10:16
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