#1175: Enhance dCursorMixin to support (1) editable and (2) compound primary 
keys
--------------------------+-------------------------------------------------
  Reporter:  aecker       |       Owner:  somebody                     
      Type:  enhancement  |      Status:  closed                       
  Priority:  major        |   Milestone:  0.8.3                        
 Component:  db           |     Version:  0.8.4                        
Resolution:  invalid      |    Keywords:  editable multiple compound pk
--------------------------+-------------------------------------------------
Comment (by aecker):

 Thanks a lot for your answers!! Ok, I see I am gone to far with this
 change request. But I think we should at least fix the bug on updating
 _newRecords in dCursorMixin.setFieldVal() and adding something like (taken
 from this ticket, point (A)):

 <<<
 if self._newRecords.has_key(old_keyFieldValue):
   self._newRecords[keyFieldValue] = None
   del self._newRecords[old_keyFieldValue]
 >>>

 to keep _newRecords dictionary key up to date if the programmer uses
 setFieldVal() to populate the primary key field (from within the onNew()
 method).

-- 
Ticket URL: <http://trac.dabodev.com/ticket/1175#comment:6>
Dabo Trac <http://trac.dabodev.com>
Trac Page for Dabo


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to