On Wednesday, October 12, 2011 07:41:36 am Ed Leafe wrote: > On Oct 11, 2011, at 10:34 AM, Vineet Deodhar wrote: > > Excuse me, I missed one more point to ask in earlier post. > > > > In appendDataSet() method, updateInternals=False by default. > > For better understanding of dabo system, can I know why it is not not set > > to True by default. What is the basic purpose of this property? > > Dabo keeps track of the status of a record through the use of various > internal flags. When you add/edit/delete records through the framework, > those flags are updated. When you add records by appendDataSet(), though, > those flags were not touched; the data was simply added to the cursor's > records. Jacek added the option of having these flags updated, but left > the defaults to False so as not to change the existing behavior of the > methods. > > However, having looked over this, I think that we have two use cases: when > working with a cursor object directly, or when working with bizobjs. In > the former case, I think that the current behavior is correct: if you are > working at that level, you should control things directly. However, when > working with bizobjs, I think that the default should be to update the > internals, since you are expecting bizobj-like behavior, which insulates > the developer from the data layer underpinnings. > > Any objection to changing the default for updateInternals in the bizobj > method signature to True? > > > -- Ed Leafe
-1 If I recall this caused an issue with my code. Could you provide the commit number and I could check into it further. Johnf _______________________________________________ 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]
