Skip to content

Package

nautobot_design_builder

Plugin declaration for nautobot_design_builder.

NautobotDesignBuilderConfig

Bases: NautobotAppConfig

Plugin configuration for the nautobot_design_builder plugin.

Source code in nautobot_design_builder/__init__.py
class NautobotDesignBuilderConfig(NautobotAppConfig):
    """Plugin configuration for the nautobot_design_builder plugin."""

    name = "nautobot_design_builder"
    verbose_name = "Nautobot Design Builder"
    version = __version__
    author = "Network to Code, LLC"
    description = "Nautobot app that uses design templates to easily create data objects in Nautobot with minimal input from a user.."
    base_url = "design-builder"
    required_settings = []
    min_version = "2.2.0"
    max_version = "2.9999"
    default_settings = {
        "protected_models": [],
        "protected_superuser_bypass": True,
    }
    caching_config = {}

    def ready(self):
        """Callback after design builder is loaded."""
        super().ready()
        from . import signals  # noqa:F401 pylint:disable=import-outside-toplevel,unused-import,cyclic-import

    # pylint: disable=no-self-argument
    @classproperty
    def context_repository(cls):
        """Retrieve the Git Repository slug that has been configured for the Design Builder."""
        return settings.PLUGINS_CONFIG[cls.name]["context_repository"]

context_repository()

Retrieve the Git Repository slug that has been configured for the Design Builder.

Source code in nautobot_design_builder/__init__.py
@classproperty
def context_repository(cls):
    """Retrieve the Git Repository slug that has been configured for the Design Builder."""
    return settings.PLUGINS_CONFIG[cls.name]["context_repository"]

ready()

Callback after design builder is loaded.

Source code in nautobot_design_builder/__init__.py
def ready(self):
    """Callback after design builder is loaded."""
    super().ready()
    from . import signals  # noqa:F401 pylint:disable=import-outside-toplevel,unused-import,cyclic-import