UI - Splitting off notifications to its own tab/menu - apprise split off
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Has been cancelled
ChangeDetection.io App Test / lint-code (push) Has been cancelled
ChangeDetection.io App Test / lint-translations (push) Has been cancelled
ChangeDetection.io App Test / lint-template-i18n (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Test the built package works basically. (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-10 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-11 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-12 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-13 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-14 (push) Has been cancelled

This commit is contained in:
dgtlmoon
2026-05-26 10:17:52 +02:00
parent 35a8a236ea
commit 5fa910446d
9 changed files with 149 additions and 71 deletions
+9 -5
View File
@@ -809,15 +809,19 @@ class commonSettingsForm(Form):
# raise ValidationError('HTML Color format is not supported by Telegram and Discord. Please choose another Notification Format (Plain Text, HTML, or Markdown to HTML).')
# Standalone form for the /settings/notifications page. Holds only the global
# notification fields (the macro `notification_part_render_common_settings_form`
# in _common_fields.html expects these exact field names) plus base_url, which
# powers the {{base_url}} token in notification templates.
# Standalone form for the /settings/notifications/apprise page. Holds only the
# global apprise-notification fields (the macro
# `notification_part_render_common_settings_form` in _common_fields.html expects
# these exact field names) plus base_url, which powers the {{base_url}} token
# in notification templates.
#
# This is intentionally not a sub-form of globalSettingsForm — the notifications
# page POSTs to its own route so the broader settings form's validators (worker
# count, RSS limits, etc.) don't run when the user only wants to tweak alerts.
class globalSettingsNotificationForm(Form):
#
# Named for the backend (apprise) on purpose: future backends (simple_email,
# webhook, etc.) will land as their own forms next to this one.
class globalSettingsAppriseNotificationForm(Form):
def __init__(self, formdata=None, obj=None, prefix="", data=None, meta=None, **kwargs):
super().__init__(formdata, obj, prefix, data, meta, **kwargs)
extra = kwargs.get('extra_notification_tokens', {})