Add support for json serialisation
Bug #984549 reported by
Ian Booth
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.enum |
Fix Released
|
High
|
Ian Booth |
Bug Description
Enumerated types cannot be serilaised using json. If an object contains an enum value, the standard json error for non-supported types is raised eg "TypeError: <DBItem Thing.FOO, (1) Foo> is not JSON serializable".
Related branches
lp:~wallyworld/lazr.enum/json-serialisation-support
- Curtis Hovey (community): Approve (code)
-
Diff: 591 lines (+360/-67)9 files modified.bzrignore (+2/-0)
_bootstrap/bootstrap.py (+229/-46)
ez_setup.py (+1/-1)
src/lazr/enum/NEWS.txt (+7/-0)
src/lazr/enum/README.txt (+34/-0)
src/lazr/enum/__init__.py (+3/-0)
src/lazr/enum/_enum.py (+29/-19)
src/lazr/enum/_json.py (+54/-0)
src/lazr/enum/version.txt (+1/-1)
Changed in lazr.enum: | |
status: | New → In Progress |
Changed in lazr.enum: | |
milestone: | none → 1.1.4 |
To post a comment you must log in.
Fixed in lazr.enum 1.1.4 (released on 2012-04-19).