dabo Commit
Revision 4767
Date: 2008-12-03 19:19:11 -0800 (Wed, 03 Dec 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4767
Changed:
U trunk/dabo/ui/dDataControlMixinBase.py
Log:
Found a case where a Designer tool (the view palette) had controls that were
bound to properties that not all the controls they were modifying had. This may
be related to some of the abends encountered when using the View Palette on
Windows and Linux.
Diff:
Modified: trunk/dabo/ui/dDataControlMixinBase.py
===================================================================
--- trunk/dabo/ui/dDataControlMixinBase.py 2008-12-03 23:15:01 UTC (rev
4766)
+++ trunk/dabo/ui/dDataControlMixinBase.py 2008-12-04 03:19:11 UTC (rev
4767)
@@ -124,7 +124,13 @@
# Could be testing
return
- srcatt = getattr(src, self.DataField)
+ try:
+ srcatt = getattr(src, self.DataField)
+ except AttributeError:
+ # This happens in design tools, where a control
might bind to a property
+ # that the current object doesn't have.
+ return
+
if self._srcIsInstanceMethod:
try:
_______________________________________________
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]