[galaxyproject/galaxy] f50606: Fix pages encoding. Using str on previously unico...
Branch: refs/heads/release_16.04 Home: https://github.com/galaxyproject/galaxy Commit: f5060628d2de4802be610fd6caf5c878afdb4312 https://github.com/galaxyproject/galaxy/commit/f5060628d2de4802be610fd6caf5c... Author: Dannon Baker <dannon.baker@gmail.com> Date: 2016-04-19 (Tue, 19 Apr 2016) Changed paths: M lib/galaxy/util/sanitize_html.py Log Message: ----------- Fix pages encoding. Using str on previously unicodify'd extended set values does not work. ``` In [2]: str("Blah blah blah, this breaks the page: ಠ_ಠ") Out[2]: 'Blah blah blah, this breaks the page: \xe0\xb2\xa0_\xe0\xb2\xa0' In [3]: str(unicodify("Blah blah blah, this breaks the page: ಠ_ಠ")) --------------------------------------------------------------------------- UnicodeEncodeError Traceback (most recent call last) <ipython-input-3-4a83f5e5f5c8> in <module>() ----> 1 str(unicodify("Blah blah blah, this breaks the page: ಠ_ಠ")) UnicodeEncodeError: 'ascii' codec can't encode character u'\u0ca0' in position 38: ordinal not in range(128) ``` Commit: 659a900693b72886fd27731a2568ce71657c4401 https://github.com/galaxyproject/galaxy/commit/659a900693b72886fd27731a2568c... Author: Dannon Baker <dannon.baker@gmail.com> Date: 2016-04-19 (Tue, 19 Apr 2016) Changed paths: M lib/galaxy/util/sanitize_html.py Log Message: ----------- Simplify expression, trust upstream pieces. Commit: 7c7d6edbfd94e5b3e187778b89ac1febb5690cb9 https://github.com/galaxyproject/galaxy/commit/7c7d6edbfd94e5b3e187778b89ac1... Author: Dannon Baker <dannon.baker@gmail.com> Date: 2016-04-19 (Tue, 19 Apr 2016) Changed paths: M lib/galaxy/util/validation.py Log Message: ----------- Swap validate_and_sanitize_basestring to use unicodify Commit: 0cde386a2cfec1c18f68f1dfd939843328f8046f https://github.com/galaxyproject/galaxy/commit/0cde386a2cfec1c18f68f1dfd9398... Author: Dannon Baker <dannon.baker@gmail.com> Date: 2016-04-20 (Wed, 20 Apr 2016) Changed paths: M lib/galaxy/util/validation.py Log Message: ----------- Remove more unnecessary unicode/text_type, since sanitize_html will always return unicode. Commit: 8749c82bef4789d810313a3fd853202a1748c63a https://github.com/galaxyproject/galaxy/commit/8749c82bef4789d810313a3fd8532... Author: Nicola Soranzo <nsoranzo@tiscali.it> Date: 2016-04-20 (Wed, 20 Apr 2016) Changed paths: M lib/galaxy/util/sanitize_html.py M lib/galaxy/util/validation.py Log Message: ----------- Merge pull request #2197 from dannon/pages_parser_fix [16.04] Pages parser fix Compare: https://github.com/galaxyproject/galaxy/compare/adbc66873a13...8749c82bef47
participants (1)
-
GitHub