Merge lp:~allenap/storm/json-variable-unicode-bug-846867 into lp:storm
Proposed by
Gavin Panella
Status: | Merged |
---|---|
Approved by: | Stuart Bishop |
Approved revision: | 406 |
Merged at revision: | 403 |
Proposed branch: | lp:~allenap/storm/json-variable-unicode-bug-846867 |
Merge into: | lp:storm |
Diff against target: |
87 lines (+30/-5) 3 files modified
storm/variables.py (+13/-1) tests/variables.py (+16/-3) tests/zope/zstorm.py (+1/-1) |
To merge this branch: | bzr merge lp:~allenap/storm/json-variable-unicode-bug-846867 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Approve | ||
Jamu Kakar (community) | Approve | ||
Review via email: mp+75129@code.launchpad.net |
Commit message
JSON properties now must back onto a unicode text column rather than a byte column.
Description of the change
Bug 846867 and bug 845904 have the background to this change. In essence, this ensures that JSONVariable always produces unicode strings at the right points, so that the JSON property can/should be used with a text column in the database rather than a byte column.
It also fixes a tiny bug in zstorm.py where tests are not skipped when the transaction module is not available but zope.component is.
To post a comment you must log in.
Nice one, +1!