Skip to content

Commit

Permalink
Merge remote branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
teixas committed Mar 2, 2012
2 parents a758af7 + 131a9f2 commit 02ea338
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion kotti/templates/add-dropdown.pt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</a>
<ul class="dropdown-menu">
<li tal:repeat="factory factories">
<a href="${api.url(context, factory.type_info.add_view)}">${factory.type_info.name}</a>
<a href="${api.url(context, factory.type_info.add_view)}">${factory.type_info.title}</a>
</li>
</ul>
</li>
Expand Down

0 comments on commit 02ea338

Please sign in to comment.