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?  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?  And how does the self.expireCache() call effect the children.  
Johnf

Johnf


_______________________________________________
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