From b6401152c39eaa980a9f4630e35ab84733caeb96 Mon Sep 17 00:00:00 2001 From: "Jens W. Klein" Date: Thu, 17 Sep 2015 16:30:13 +0200 Subject: [PATCH] more attributes to migrate --- plone/app/upgrade/v50/betas.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/plone/app/upgrade/v50/betas.py b/plone/app/upgrade/v50/betas.py index 5af85cc5..c4b9694d 100644 --- a/plone/app/upgrade/v50/betas.py +++ b/plone/app/upgrade/v50/betas.py @@ -463,7 +463,18 @@ def upgrade_navigation_controlpanel_settings_2(context): except KeyError: return - settings.root = navigation_properties.getProperty('root') + navigation_properties._delProperty('idsNotToList') + + settings.sort_tabs_on = navigation_properties.getProperty( + 'sortAttribute' + ).decode('utf8') + navigation_properties._delProperty('sortAttribute') + + desc = navigation_properties.getProperty('sortOrder') == 'desc' + settings.sort_tabs_reversed = desc + navigation_properties._delProperty('sortOrder') + + settings.root = navigation_properties.getProperty('root').decode('utf8') navigation_properties._delProperty('root') @@ -507,4 +518,3 @@ def to50rc3(context): # migrate navtree properties upgrade_navigation_controlpanel_settings_2(context) -