Hi,
There are still issues with saving new unchanged records.
I see two kinds of problem:
1) described in ticket #1132 (two years ago), it's because
dCursorMixin.save() method line of code
if pk in self._mementos.keys():
saverow(self.RowNumber)
there should be:
if pk in self._mementos.keys() or pk in self._newRecords.keys():
saverow(self.RowNumber)
2) when using classes from lib.datanav module, if there are
child bizobjs and more than one edit page, because
each page modifies form PrimaryBizobj property,
so save for current bizobj is issued instead of its new parent.
Soultion: datanav.Form.save() should restore PrimaryBizobj before save.
In both cases database exception is raised:
Key (key_field)=(-2) is not present in table "sample_table".
I hope this ticket become closed some day...
--
Regards
Jacek Kałucki
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]