Skip to content

Commit

Permalink
Force unicode from one of the factories.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Volkov committed Dec 10, 2012
1 parent c7f2cbe commit bb15a95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions z3c/widget/optchoice/widget.py
Expand Up @@ -136,6 +136,8 @@ def OptchoiceWidgetCustomTokenFactory(field, request, other_token=None):
"""
IField widget factory that specifies other token for optional input field
"""
if other_token:
other_token = tuple([ unicode(x) for x in other_token ])
return FieldWidget(field, OptChoiceWidget(request, other_token=other_token))

#Sorry for javascript names, I blame zope.
Expand Down

0 comments on commit bb15a95

Please sign in to comment.