dabo Commit
Revision 4619
Date: 2008-10-28 06:27:24 -0700 (Tue, 28 Oct 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4619
Changed:
U trunk/dabo/ui/dDataControlMixinBase.py
Log:
Changed the order that the update() steps are carried out. I had noticed a bug
in some of my Dynamic* properties that depended on the control's Value. The
cause was that the dynamic props are evaluated *before* the Value gets updated.
Diff:
Modified: trunk/dabo/ui/dDataControlMixinBase.py
===================================================================
--- trunk/dabo/ui/dDataControlMixinBase.py 2008-10-27 14:36:32 UTC (rev
4618)
+++ trunk/dabo/ui/dDataControlMixinBase.py 2008-10-28 13:27:24 UTC (rev
4619)
@@ -95,8 +95,13 @@
def update(self):
""" Update control's value to match the current value from the
source."""
+ # We need to do the data handling stuff before calling super()
+ self.__dataUpdate()
super(dDataControlMixinBase, self).update()
+
+ def __dataUpdate(self):
+ """This handles all the value updating from the data source."""
if getattr(self, "SelectOnEntry", False) and
self.Form.ActiveControl == self:
self.selectAll()
_______________________________________________
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]