commit/galaxy-central: dan: In tool_form, have call to unicode on non unicode field_html use 'replace' instead of raising a server error. Fixes issues seen with non unicode characters in history item names.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/34b5ed4d756e/ changeset: 34b5ed4d756e user: dan date: 2012-04-05 23:13:15 summary: In tool_form, have call to unicode on non unicode field_html use 'replace' instead of raising a server error. Fixes issues seen with non unicode characters in history item names. affected #: 1 file diff -r 5946d6694829ba6377c33ec2cfab91bbaff5671a -r 34b5ed4d756ec979eecc77c8dae2a09a1112ad2d templates/tool_form.mako --- a/templates/tool_form.mako +++ b/templates/tool_form.mako @@ -218,7 +218,7 @@ # Field may contain characters submitted by user and these characters may be unicode; handle non-ascii characters gracefully. field_html = field.get_html( prefix ) if type( field_html ) is not unicode: - field_html = unicode( field_html, 'utf-8' ) + field_html = unicode( field_html, 'utf-8', 'replace' ) if param.type == "hidden": return field_html Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket