mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
- Convert the information into code comments. - This argument seems to be unused. Passing the argument has been deprecated. On Django 3.2 it throws a warning that it will be removed from Django 4.0. Tests: - Run unit tests on Django 3.2 and Django 2.2. With Django 3.2, warning related to provider_args are no longer show. - On Django 3.2 and Django 2.2, change the hostname to trigger a signal. Tests: - Install ebabberd. Goto system -> config and change the hostname and domain name. This triggers pre_hostname_change, post_hostname_change, domain_removed and domain_added signals. There should be no errors during the process. Console shows no errors. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
28 lines
554 B
Python
28 lines
554 B
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
"""
|
|
Django signals emitted within FreedomBox.
|
|
"""
|
|
|
|
from django.dispatch import Signal
|
|
|
|
# Arguments: -
|
|
pre_module_loading = Signal()
|
|
|
|
# Arguments: -
|
|
post_module_loading = Signal()
|
|
|
|
# Arguments: module_name
|
|
post_setup = Signal()
|
|
|
|
# Arguments: old_hostname, new_hostname
|
|
pre_hostname_change = Signal()
|
|
|
|
# Arguments: old_hostname, new_hostname
|
|
post_hostname_change = Signal()
|
|
|
|
# Arguments: domain_type, name, description, services
|
|
domain_added = Signal()
|
|
|
|
# Arguments: domain_type, name
|
|
domain_removed = Signal()
|