db.get_records and db.get_record return different data types

Bug #905913 reported by Sasa Stamenkovic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
desktopcouch
New
Undecided
Unassigned

Bug Description

I created a code spippet to reproduce this behaviour https://gist.github.com/1493051

From this example we can see that there is significant difference in datatypes returned from this 2 methods.

Special attention on dictionary attribute of the record saved, which is returned as {} from get_records, but as desktopcouch.records.RecordDict from get_record.

Why this behaviour, is this a bug? If not, how to save this RecordDict back to db with db.update_fields(), because it throws ''Document' object has no attribute 'read'' error when I try.

description: updated
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.