author | schlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 15 Jul 2011 12:36:47 +0000 (12:36 +0000) | ||
committer | schlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 15 Jul 2011 12:36:47 +0000 (12:36 +0000) | ||
commit | 20b39defda9bb97ac33f3de25558d76187f2b584 | |
tree | 9e27f7231c332cc83716a13e6eadba036864c30a | tree | snapshot |
parent | 8e971a11ede4238662bb5bdab3fb7d846ca2e674 | commit | diff |
- Fix StringIO issue2550713: io.StringIO in newer versions of python
returns unicode strings and expects a unicode string in the
constructor. Unfortunately csv doesn't handle unicode (yet). So we
need to use a BytesIO which gets the utf-8 string from the
web-interface. Compatibility for old versions by using
Stringio.Stringio for emulating a io.BytesIO also works.
- We didn't have a regression test for the EditCSVAction
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4633 57a73879-2fb5-44c3-a270-3262357dd7e2
returns unicode strings and expects a unicode string in the
constructor. Unfortunately csv doesn't handle unicode (yet). So we
need to use a BytesIO which gets the utf-8 string from the
web-interface. Compatibility for old versions by using
Stringio.Stringio for emulating a io.BytesIO also works.
- We didn't have a regression test for the EditCSVAction
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4633 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/anypy/io_.py | diff | blob | history | |
roundup/cgi/actions.py | diff | blob | history | |
test/test_cgi.py | diff | blob | history |