On 11/29/10 11:38 AM, John Fabiani wrote: > On Monday, November 29, 2010 10:41:16 am Paul McNett wrote: >> dabo Commit >> Revision 6227 >> Date: 2010-11-29 10:41:16 -0800 (Mon, 29 Nov 2010) >> Author: Paul >> Trac: http://trac.dabodev.com/changeset/6227 >> >> Changed: >> U trunk/dabo/biz/dBizobj.py >> U trunk/dabo/ui/uiwx/dForm.py >> >> Log: >> Removed the recently-added force argument from requeryAllChildren, >> in favor of adding a note to the docstring that developers should >> explicitly call self.expireCache() before requerying, which ensures >> all cursors (not just the current one) in a bizobj will get requeried >> next time the record becomes active. >> >> Moved the setCurrentParent() call outside the check for RequeryWithParent, >> as the setting of the parent should happen unconditionally. However, >> this will result in the side-effect of an implicit requery() if the >> cursor for that key doesn't exist yet, *and* RequeryOnLoad is True. >> >> Refactored cacheExpired() a bit, with a check for lastRequeryTime being >> None. >> >> Added biz.expireCache() to dForm.requery() per Jacek's suggestion. > > Sorry this is not very clear to me. If I want requery() to work as it did > what do I have to do?
Nothing, unless you were using biz.ChildCacheInterval and you want the old behavior of the child bizobj's not being guaranteed to be requeried. > As I understand it - if I want to retrieve the current > data in the database I have to issue a special call self.expireCache() is that > correct? You only need to worry about this if you use biz.ChildCacheInterval. > And how does the self.expireCache() call effect the children. If you are using biz.ChildCacheInterval, biz.expireCache() with no arguments will expire the cache of all children, meaning the next time they requery() they'll get current data from the database and not from the cache. Paul _______________________________________________ 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]
