3 new commits in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/58de45b27662/ Changeset: 58de45b27662 User: dan Date: 2013-05-24 19:56:42 Summary: Fix for displaying unicode characters in TextField in form_builder. Affected #: 1 file diff -r ca744d4ef4abccc800226e8573b0cb4b3406efb5 -r 58de45b27662ce59994ca6990df1aa8e25f83d53 lib/galaxy/web/form_builder.py --- a/lib/galaxy/web/form_builder.py +++ b/lib/galaxy/web/form_builder.py @@ -34,8 +34,12 @@ self.size = int( size or 10 ) self.value = value or "" def get_html( self, prefix="", disabled=False ): + value = self.value + if not isinstance( value, basestring ): + value = str( value ) + value = unicodify( value ) return unicodify( '<input type="text" name="%s%s" size="%d" value="%s"%s>' \ - % ( prefix, self.name, self.size, escape( str( self.value ), quote=True ), self.get_disabled_str( disabled ) ) ) + % ( prefix, self.name, self.size, escape( value, quote=True ), self.get_disabled_str( disabled ) ) ) def set_size(self, size): self.size = int( size ) https://bitbucket.org/galaxy/galaxy-central/commits/d57826b9c605/ Changeset: d57826b9c605 Branch: next-stable User: dan Date: 2013-05-24 19:56:42 Summary: Fix for displaying unicode characters in TextField in form_builder. Affected #: 1 file diff -r 9c138ae94a5ee5b7f58d2ce9ff6a2222744b4b31 -r d57826b9c6052bd6278631228f8ce09ebfbabb98 lib/galaxy/web/form_builder.py --- a/lib/galaxy/web/form_builder.py +++ b/lib/galaxy/web/form_builder.py @@ -34,8 +34,12 @@ self.size = int( size or 10 ) self.value = value or "" def get_html( self, prefix="", disabled=False ): + value = self.value + if not isinstance( value, basestring ): + value = str( value ) + value = unicodify( value ) return unicodify( '<input type="text" name="%s%s" size="%d" value="%s"%s>' \ - % ( prefix, self.name, self.size, escape( str( self.value ), quote=True ), self.get_disabled_str( disabled ) ) ) + % ( prefix, self.name, self.size, escape( value, quote=True ), self.get_disabled_str( disabled ) ) ) def set_size(self, size): self.size = int( size ) https://bitbucket.org/galaxy/galaxy-central/commits/9a97a7fd23bc/ Changeset: 9a97a7fd23bc User: dan Date: 2013-05-24 19:57:02 Summary: merge Affected #: 0 files 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.