sortedset JSON serialization falure

Bug #1328847 reported by Alexander Chudnovets
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MagnetoDB
Fix Released
Medium
Alexander Chudnovets

Bug Description

JSON serialization fails if models.AttributeValue contains collection:

  File "magnetodb/storage/models.py", line 65, in encode_model
    raise TypeError(repr(obj) + " is not JSON serializable")
TypeError: sortedset(['Help', 'Update']) is not JSON serializable

description: updated
Changed in magnetodb:
assignee: nobody → Alexander Chudnovets (achudnovets)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnetodb (master)

Reviewed: https://review.openstack.org/99316
Committed: https://git.openstack.org/cgit/stackforge/magnetodb/commit/?id=ae0934c6ef815f56b0b319d8eba07ad12e62dc6c
Submitter: Jenkins
Branch: master

commit ae0934c6ef815f56b0b319d8eba07ad12e62dc6c
Author: Alexander Chudnovets <email address hidden>
Date: Wed Jun 11 12:52:11 2014 +0300

    Fixes falure on sortedset serialization

    Change-Id: Icf76caa55a928ec45f59a97c5e41e0fb65d24972
    Closes-Bug: #1328847

Changed in magnetodb:
status: New → Fix Committed
Changed in magnetodb:
milestone: none → kilo-2
importance: Undecided → Medium
Changed in magnetodb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.