dabo Commit
Revision 4593
Date: 2008-10-24 12:17:32 -0700 (Fri, 24 Oct 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4593
Changed:
U trunk/dabo/ui/dDataControlMixinBase.py
Log:
Fixed update() to not do anything if self.Source is None. It allows for testing.
Diff:
Modified: trunk/dabo/ui/dDataControlMixinBase.py
===================================================================
--- trunk/dabo/ui/dDataControlMixinBase.py 2008-10-24 16:48:43 UTC (rev
4592)
+++ trunk/dabo/ui/dDataControlMixinBase.py 2008-10-24 19:17:32 UTC (rev
4593)
@@ -122,7 +122,13 @@
self._srcIsInstanceMethod = False
else:
self._srcIsInstanceMethod =
callable(getattr(src, self.DataField))
+
+ if src is None:
+ # Could be testing
+ return
+
srcatt = getattr(src, self.DataField)
+
if self._srcIsInstanceMethod:
try:
self.Value = srcatt()
_______________________________________________
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]