Skip to content

Commit

Permalink
Plone 6: Always use a lines property for behaviors, no longer the dep…
Browse files Browse the repository at this point in the history
…recated ulines.

Part of plone/Products.CMFPlone#3305.
Note: I have switched coredev 5.2 to use `plone.dexterity` branch 2.x.
  • Loading branch information
mauritsvanrees committed Dec 20, 2021
1 parent 4782a0b commit d1e0495
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions news/3305.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Plone 6: Always use a lines property for behaviors, no longer the deprecated ulines.
Part of `issue 3305 <https://github.com/plone/Products.CMFPlone/issues/3305>`_.
[maurits]
6 changes: 1 addition & 5 deletions plone/dexterity/fti.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit d1e0495

Please sign in to comment.