Signals
This package contains signal handlers (see Signals).
Auth Signals
This module contains signal handlers related to authentication.
- integreat_cms.core.signals.auth_signals.user_logged_in_callback(sender: ModelBase, request: HttpRequest, user: User, **kwargs: Any) None [source]
Log a successful login event
- Parameters:
sender (ModelBase) – The class of the user that just logged in.
request (HttpRequest) – The current request
user (User) – The user instance that just logged in.
**kwargs (Any) – The supplied keyword arguments
- Return type:
None
- integreat_cms.core.signals.auth_signals.user_logged_out_callback(sender: ModelBase, request: HttpRequest, user: User, **kwargs: Any) None [source]
Log a logout event
- Parameters:
sender (ModelBase) – The class of the user that just logged out or
None
if the user was not authenticated.request (HttpRequest) – The current request
user (User) – The user instance that just logged out or
None
if the user was not authenticated.**kwargs (Any) – The supplied keyword arguments
- Return type:
None
- integreat_cms.core.signals.auth_signals.user_login_failed_callback(sender: ModelBase, credentials: dict[str, str], request: HttpRequest, **kwargs: Any) None [source]
Log a failed login event
- Parameters:
sender (ModelBase) – The name of the module used for authentication.
credentials (dict[str, str]) – A dictionary of keyword arguments containing the user credentials that were passed to
authenticate()
. Credentials matching a set of ‘sensitive’ patterns, (including password) will not be sent in the clear as part of the signal.request (HttpRequest) – The current request
**kwargs (Any) – The supplied keyword arguments
- Return type:
None
Contact Signals
This module contains signal handlers related to contact objects.
- integreat_cms.core.signals.contact_signals.contact_save_handler(instance: Contact, **kwargs: Any) None [source]
Update contact details in content objects after changing contact details
- Parameters:
instance (Contact) – The page translation that gets saved
**kwargs (Any) – The supplied keyword arguments
- Return type:
None
Feedback Signals
This module contains signal handlers related to feedback objects.
- integreat_cms.core.signals.feedback_signals.feedback_create_handler(sender: ModelBase, **kwargs: Any) None [source]
Invalidate feedback cache after feedback creation
- Parameters:
sender (ModelBase) – The class of the feedback that was deleted
**kwargs (Any) – The supplied keyword arguments
- Return type:
None
- integreat_cms.core.signals.feedback_signals.feedback_delete_handler(sender: ModelBase, **kwargs: Any) None [source]
Invalidate feedback cache after feedback deletion
- Parameters:
sender (ModelBase) – The class of the feedback that was deleted
**kwargs (Any) – The supplied keyword arguments
- Return type:
None
Hix Signals
- integreat_cms.core.signals.hix_signals.page_translation_save_handler(instance: PageTranslation, **kwargs: Any) None [source]
Calculates a hix store for a page translation before saving
- Parameters:
instance (PageTranslation) – The page translation that gets saved
**kwargs (Any) – The supplied keyword arguments
- Return type:
None
Organization Signals
This module contains signal handlers related to organization objects.