On Sat, Aug 1, 2009 at 9:33 PM, Miguel Lopes<[email protected]> wrote: > On Sat, Aug 1, 2009 at 9:26 PM, Ed Leafe<[email protected]> wrote: >> On Aug 1, 2009, at 3:22 PM, Miguel Lopes wrote: > Miguel > > PS. regarding my particular case, I have to think a little on how to > best present it. > txs for all the help! >
Solved thank you for the help! Ed, you mentioned that: >> ... >> >> if not self.commitTransaction(): >> self.rollbackTransaction() > > Generally you want to catch errors in your saves, and when an error > is encountered, rollback everything. Only if no errors occur do you > call commitTransaction. How can I catch errors in saves? I've checked the API and bizobj methods save() and saveAll() do not raise errors. On the other hand, rollbackTransaction() returns boolean. What if it returns False. I can only imagine it doing this if the connection is lost or the database goes down, full. How can we deal with this in code? Miguel _______________________________________________ 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]
