From c1b9c9de760dba351a98728d45a24bc0d09e7127 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 19 Oct 2023 17:04:15 -0400 Subject: [PATCH] Add TODO reminders for v4.0 --- netbox/extras/plugins/__init__.py | 1 + netbox/extras/plugins/navigation.py | 1 + netbox/extras/plugins/registration.py | 1 + netbox/extras/plugins/templates.py | 1 + netbox/extras/plugins/urls.py | 1 + netbox/extras/plugins/utils.py | 1 + netbox/extras/plugins/views.py | 1 + 7 files changed, 7 insertions(+) diff --git a/netbox/extras/plugins/__init__.py b/netbox/extras/plugins/__init__.py index 7cfea5184..31ea1ce09 100644 --- a/netbox/extras/plugins/__init__.py +++ b/netbox/extras/plugins/__init__.py @@ -5,4 +5,5 @@ from .utils import * from netbox.plugins import PluginConfig +# TODO: Remove in v4.0 warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning) diff --git a/netbox/extras/plugins/navigation.py b/netbox/extras/plugins/navigation.py index da8e728af..08d1baa54 100644 --- a/netbox/extras/plugins/navigation.py +++ b/netbox/extras/plugins/navigation.py @@ -3,4 +3,5 @@ import warnings from netbox.plugins.navigation import * +# TODO: Remove in v4.0 warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning) diff --git a/netbox/extras/plugins/registration.py b/netbox/extras/plugins/registration.py index 8ac21a2ba..8d2d85573 100644 --- a/netbox/extras/plugins/registration.py +++ b/netbox/extras/plugins/registration.py @@ -3,4 +3,5 @@ import warnings from netbox.plugins.registration import * +# TODO: Remove in v4.0 warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning) diff --git a/netbox/extras/plugins/templates.py b/netbox/extras/plugins/templates.py index acfccd745..0e09f33d2 100644 --- a/netbox/extras/plugins/templates.py +++ b/netbox/extras/plugins/templates.py @@ -3,4 +3,5 @@ import warnings from netbox.plugins.templates import * +# TODO: Remove in v4.0 warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning) diff --git a/netbox/extras/plugins/urls.py b/netbox/extras/plugins/urls.py index ed6e95beb..8b24e8fd2 100644 --- a/netbox/extras/plugins/urls.py +++ b/netbox/extras/plugins/urls.py @@ -3,4 +3,5 @@ import warnings from netbox.plugins.urls import * +# TODO: Remove in v4.0 warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning) diff --git a/netbox/extras/plugins/utils.py b/netbox/extras/plugins/utils.py index 7f07020b4..15ae018d1 100644 --- a/netbox/extras/plugins/utils.py +++ b/netbox/extras/plugins/utils.py @@ -3,4 +3,5 @@ import warnings from netbox.plugins.utils import * +# TODO: Remove in v4.0 warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning) diff --git a/netbox/extras/plugins/views.py b/netbox/extras/plugins/views.py index 1260bc780..505742e6b 100644 --- a/netbox/extras/plugins/views.py +++ b/netbox/extras/plugins/views.py @@ -3,4 +3,5 @@ import warnings from netbox.plugins.views import * +# TODO: Remove in v4.0 warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning)