dabo Commit
Revision 6961
Date: 2011-11-04 11:50:11 -0700 (Fri, 04 Nov 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6961
Changed:
U trunk/dabo/biz/dBizobj.py
Log:
Documentation fixes. Also trivially changed evaluation order in determining
whether to requery a child.
Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py 2011-11-04 12:16:02 UTC (rev 6960)
+++ trunk/dabo/biz/dBizobj.py 2011-11-04 18:50:11 UTC (rev 6961)
@@ -1411,9 +1411,9 @@
Its purpose is to keep child cursor in sync with parent cursor.
The updateChildren parameter meaning:
- | None - the fastest one, doesn't update nor requery
child cursor
+ | None - the fastest one, doesn't update parent nor
requery child cursor
| False - update child cursor with current parent
- | True - do both, update child cursor and requery ONLY
empty cursors.
+ | True - do both, update child cursor's parent and
requery child cursor.
"""
if updateChildren is not None:
for child in self._children:
@@ -1427,7 +1427,8 @@
# both of those conditions out completely for
now, although that is most certainly
# wrong as well, but at least we are now
consistent in behavior between e.g. self.first()
# and self.RowNumber = 0.
- if child.RequeryWithParent and updateChildren
and child.cacheExpired() and not child.isAnyChanged():
+ if updateChildren and child.RequeryWithParent
and child.cacheExpired() \
+ and not child.isAnyChanged():
child.requery()
@@ -2937,7 +2938,7 @@
ChildCacheInterval = property(_getChildCacheInterval,
_setChildCacheInterval, None,
_("""If this is a child bizobj, this represents the
length of time in seconds that a
- subsequent requery request will be ignored. (int)
+ requery from parent.requeryAllChildren() will be
ignored. (int)
"""))
Connection = property(_getConnection, None, None,
_______________________________________________
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]