Skip to content

Commit

Permalink
This is an ascii field now, no need to safe_unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
esteele committed Sep 19, 2015
1 parent 62e89a9 commit 6d8a3ff
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions plone/app/upgrade/v50/betas.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,8 @@ def to50rc3(context):
'calendar_starting_year',
'calendar_future_years_available',
'redirect_links',
'enable_checkout_workflow'
'enable_checkout_workflow',
'default_charset'
]
for p in properties_to_migrate:
if site_properties.hasProperty(p):
Expand Down Expand Up @@ -551,11 +552,6 @@ def to50rc3(context):
registry['plone.default_page_types'] = [safe_unicode(i) for i in value]
site_properties._delProperty('default_page_types')

if site_properties.hasProperty('default_charset'):
value = site_properties.getProperty('default_charset')
registry['plone.default_charset'] = safe_unicode(value)
site_properties._delProperty('default_charset')

if site_properties.hasProperty('sitemapDepth'):
value = site_properties.getProperty('sitemapDepth')
registry['plone.sitemap_depth'] = value
Expand Down

0 comments on commit 6d8a3ff

Please sign in to comment.