dabo Commit
Revision 6963
Date: 2011-11-04 12:23:05 -0700 (Fri, 04 Nov 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6963
Changed:
U trunk/dabo/ui/uiwx/dForm.py
Log:
Removed the delaying of requeryAllChildren() from the dForm row navigation
cycle.
Diff:
Modified: trunk/dabo/ui/uiwx/dForm.py
===================================================================
--- trunk/dabo/ui/uiwx/dForm.py 2011-11-04 18:56:07 UTC (rev 6962)
+++ trunk/dabo/ui/uiwx/dForm.py 2011-11-04 19:23:05 UTC (rev 6963)
@@ -240,10 +240,6 @@
def _afterPointerMoveUpdate(self, biz):
- if self._oldChildRequery:
- biz.requeryAllChildren()
- biz.RequeryChildrenOnNavigate = self._oldChildRequery
- self._oldChildRequery = None
self.update(0)
self.refresh()
# Notify listeners that the row number changed:
@@ -270,16 +266,10 @@
self.notifyUser(err)
return False
- if getattr(self, "_oldChildRequery", None) is None:
- self._oldChildRequery = biz.RequeryChildrenOnNavigate
- biz.RequeryChildrenOnNavigate = False
-
def bail(msg, meth=None, *args, **kwargs):
if meth is None:
meth = self.setStatusText
meth(msg, *args, **kwargs)
- biz.RequeryChildrenOnNavigate = self._oldChildRequery
- self._oldChildRequery = None
try:
response = func(*args, **kwargs)
@@ -309,9 +299,6 @@
dabo.ui.callAfterInterval(self._afterPointerMoveUpdate, delay, biz)
else:
self._afterPointerMoveUpdate(biz)
- else:
- biz.RequeryChildrenOnNavigate =
self._oldChildRequery
- self._oldChildRequery = None
return True
@@ -790,13 +777,13 @@
def afterPointerMove(self):
"""
Called after the PrimaryBizobj's RowNumber has changed,
- all children have been requeried, and the form has been updated.
+ and the form has been updated.
"""
pass
def afterRowNavigation(self):
"""
Called after the PrimaryBizobj's RowNumber has changed,
- but before the child requeries and form updates.
+ but before the form updates.
"""
pass
@@ -997,8 +984,7 @@
default behavior will reflect the current row number in
the form's status bar as
row navigation is occurring.
- After a navigation and the RowNavigationDelay has
passed, the bizobj's children
- will be requeried (if biz.RequeryChildrenOnNavigate is
True) and the form will be
+ After a navigation and the RowNavigationDelay has
passed, the form will be
completely updated and refreshed. dEvents.RowNumChanged
will be fired, and the
hook afterPointerMove() will be called.
_______________________________________________
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]