Jump to >

djblets.integrations.mixins

class NeedsIntegrationManagerMixin[source]

Mixin for classes that require an integration manager to be defined.

Some classes require access to an integration manager, which must be provided by the consuming application. This mixin provides get_integration_manager() class method that, if not overridden, will raise a NotImplementedError.

classmethod get_integration_manager()[source]

Return the integration manager used for this class.

Subclasses must override this to return an IntegrationManager instance that will be used for any interaction management for this class.

Returns

The integration manager for this class.

Return type

djblets.integrations.manager.IntegrationManager

Raises

NotImplementedError – Raised if a subclass doesn’t override this method.