The behavior or the record_id attribute in the Record class is not consistent.

Bug #490343 reported by Manuel de la Peña
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
desktopcouch
Fix Released
Undecided
Manuel de la Peña

Bug Description

When working with a Record class the following behavior can be found:

>> record = Record({'_id':'someid', 'some_data':'data'"}, record_type='some_url')
>> print str(record.record_id)
None
>> db = CouchDatabase('test')
>> print str(db.put_record(record))
'someid'

The record_id should used the data in the dict rather than None if possible.

Related branches

Chad Miller (cmiller)
Changed in desktopcouch:
assignee: nobody → Mandel (mandel)
status: New → Confirmed
Changed in desktopcouch:
status: Confirmed → In Progress
Chad Miller (cmiller)
Changed in desktopcouch:
milestone: none → 0.6
Changed in desktopcouch:
status: In Progress → Fix Committed
Chad Miller (cmiller)
Changed in desktopcouch:
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.