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",