From d1e04956adcc27cc7a266dd8e61aaf0ee22cc3ca Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Mon, 20 Dec 2021 12:42:18 +0100 Subject: [PATCH] Plone 6: Always use a lines property for behaviors, no longer the deprecated ulines. Part of https://github.com/plone/Products.CMFPlone/issues/3305. Note: I have switched coredev 5.2 to use `plone.dexterity` branch 2.x. --- news/3305.bugfix | 3 +++ plone/dexterity/fti.py | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 news/3305.bugfix diff --git a/news/3305.bugfix b/news/3305.bugfix new file mode 100644 index 00000000..0d4d3c64 --- /dev/null +++ b/news/3305.bugfix @@ -0,0 +1,3 @@ +Plone 6: Always use a lines property for behaviors, no longer the deprecated ulines. +Part of `issue 3305 `_. +[maurits] diff --git a/plone/dexterity/fti.py b/plone/dexterity/fti.py index abea8c22..e918ef43 100644 --- a/plone/dexterity/fti.py +++ b/plone/dexterity/fti.py @@ -63,10 +63,6 @@ class DexterityFTI(base.DynamicViewTypeInformation): meta_type = "Dexterity FTI" - behaviors_type = "ulines" - if six.PY2: - behaviors_type = "lines" - _properties = base.DynamicViewTypeInformation._properties + ( { "id": "add_permission", @@ -86,7 +82,7 @@ class DexterityFTI(base.DynamicViewTypeInformation): }, { "id": "behaviors", - "type": behaviors_type, + "type": "ulines", "mode": "w", "label": "Behaviors", "description": "Names of enabled behaviors type",