From d2d300e42ab2b8c73b6f19173e069c673316ed1d Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Sun, 19 Jan 2025 00:14:54 +0100 Subject: [PATCH] Fix DeprecationWarnings. --- news/4090.bugfix | 1 + plone/app/contenttypes/schema/link.xml | 2 +- plone/app/contenttypes/tests/test_collection.py | 2 +- plone/app/contenttypes/tests/test_link.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 news/4090.bugfix diff --git a/news/4090.bugfix b/news/4090.bugfix new file mode 100644 index 000000000..8528aefbe --- /dev/null +++ b/news/4090.bugfix @@ -0,0 +1 @@ +Fix DeprecationWarnings. [maurits] diff --git a/plone/app/contenttypes/schema/link.xml b/plone/app/contenttypes/schema/link.xml index 972c389f6..f1ecf87ee 100644 --- a/plone/app/contenttypes/schema/link.xml +++ b/plone/app/contenttypes/schema/link.xml @@ -6,7 +6,7 @@ i18n:domain="plone" > - diff --git a/plone/app/contenttypes/tests/test_collection.py b/plone/app/contenttypes/tests/test_collection.py index a851b008c..9c344c423 100644 --- a/plone/app/contenttypes/tests/test_collection.py +++ b/plone/app/contenttypes/tests/test_collection.py @@ -7,7 +7,6 @@ from plone.app.contenttypes.testing import PLONE_APP_CONTENTTYPES_FUNCTIONAL_TESTING from plone.app.contenttypes.testing import PLONE_APP_CONTENTTYPES_INTEGRATION_TESTING from plone.app.contenttypes.testing import set_browserlayer -from plone.app.layout.navigation.interfaces import INavigationRoot from plone.app.testing import login from plone.app.testing import logout from plone.app.testing import setRoles @@ -16,6 +15,7 @@ from plone.app.testing import TEST_USER_ID from plone.app.testing import TEST_USER_NAME from plone.app.textfield.value import RichTextValue +from plone.base.interfaces.siteroot import INavigationRoot from plone.dexterity.interfaces import IDexterityFTI from plone.testing.zope import Browser from transaction import commit diff --git a/plone/app/contenttypes/tests/test_link.py b/plone/app/contenttypes/tests/test_link.py index dabdd9a81..de8000ef9 100644 --- a/plone/app/contenttypes/tests/test_link.py +++ b/plone/app/contenttypes/tests/test_link.py @@ -14,7 +14,7 @@ from plone.app.testing import TEST_USER_ID from plone.app.z3cform.converters import LinkWidgetDataConverter from plone.app.z3cform.interfaces import IPloneFormLayer -from plone.app.z3cform.widget import LinkWidget +from plone.app.z3cform.widgets.link import LinkWidget from plone.dexterity.interfaces import IDexterityFTI from plone.testing.zope import Browser from plone.uuid.interfaces import IUUID