Skip to content

Commit

Permalink
Merge pull request Kotti#28 from chrneumann/unicode_ini
Browse files Browse the repository at this point in the history
Fix Kotti#27: Unicode in INI file
  • Loading branch information
dnouri committed Mar 2, 2012
2 parents 718f3c4 + 23dd609 commit 131a9f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kotti/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ def base_configure(global_config, **settings):
for key, value in conf_defaults.items():
settings.setdefault(key, value)

for key, value in settings.items():
if isinstance(settings[key], basestring):
settings[key] = unicode(value, 'utf8')

# Allow extending packages to change 'settings' w/ Python:
_resolve_dotted(settings, keys=('kotti.configurators',))
for func in settings['kotti.configurators']:
Expand Down

0 comments on commit 131a9f2

Please sign in to comment.