reviewboard.signals¶
Top-level signals for initialization and settings changes.
-
initializing
= <django.dispatch.dispatcher.Signal object>[source]¶ Emitted when the initialization of Review Board is complete.
This will emit any time a process or thread has finished initializing, and is ready to serve requests.
-
site_settings_loaded
= <django.dispatch.dispatcher.Signal object>[source]¶ Emitted when site settings have been loaded.
Any time there are new settings saved or loaded, this will emit. Consumers can listen and update their own state based on the new settings.
-
deprecated_signal_argument
(signal_name, old_name, new_name, value)[source]¶ Wrap a signal argument in a lazy object to warn when treated as unicode.
Parameters: - signal_name (unicode) – The name of the signal.
- old_name (unicode) – The name of the signal argument that was deprecated.
- new_name (unicode) – The name of the signal argument to use in the deprecated argument’s place.
- value (object) – The corresponding value.
Returns: The value wrapped in a lazy object. The first time it is casted as
unicode
a warning will be emitted.Return type: django.utils.functional.SimpleLazyObject