New issue 10 by josh.rickard: Saving an array of dicts fails
http://code.google.com/p/pyactiveresource/issues/detail?id=10
What steps will reproduce the problem?
1. attempt to save an active resource object that has an array of dict
objects:
record.some_value = [{"x": 1, "y": 2}, {"x": 3, "y": 4}]
record.save
>> errors out because pyactiveresource tries to run to_dict on a dict
What is the expected output? What do you see instead?
It should save without errors.
What version of the product are you using? On what operating system?
OSX, Ubuntu
I'm very new to python but I've attached a patch that has worked for me.
I'm sure it could be re-written with more elegance.
Attachments:
patch.diff 840 bytes
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Oops, had some whitespace issues in the original attachment.
Attachments:
patch.diff 836 bytes