dabo Commit
Revision 6187
Date: 2010-11-11 13:12:56 -0800 (Thu, 11 Nov 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6187
Changed:
U trunk/dabo/biz/dBizobj.py
Log:
Check for lastRequeryTime of 0, in which case force the requery. This isn't
needed when using the default cacheExpired() function, but I've overridden
that function in my biz classes and I still need the child requery to happen
if the child cursor hasn't ever been requeried.
Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py 2010-11-11 19:32:11 UTC (rev 6186)
+++ trunk/dabo/biz/dBizobj.py 2010-11-11 21:12:56 UTC (rev 6187)
@@ -1538,7 +1538,7 @@
child.setCurrentParent() ##pkm: shouldn't this
happen unconditionally?
if not
child.isAnyChanged(useCurrentParent=True):
# Check for caching
- if force or child.cacheExpired():
+ if force or not
child._CurrentCursor.lastRequeryTime or child.cacheExpired():
child.requery()
self.afterChildRequery()
_______________________________________________
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]