Skip to content

Commit

Permalink
more attributes to migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens authored and pbauer committed Sep 19, 2015
1 parent fb5672d commit b640115
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions plone/app/upgrade/v50/betas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')


Expand Down Expand Up @@ -507,4 +518,3 @@ def to50rc3(context):

# migrate navtree properties
upgrade_navigation_controlpanel_settings_2(context)

0 comments on commit b640115

Please sign in to comment.