dabo Commit
Revision 4394
Date: 2008-08-10 09:10:54 -0700 (Sun, 10 Aug 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4394
Changed:
U trunk/dabo/lib/propertyHelperMixin.py
U trunk/dabo/ui/uiwx/dPemMixin.py
Log:
Reverted prior change; applied the general solution to propertyHelperMixin.
Diff:
Modified: trunk/dabo/lib/propertyHelperMixin.py
===================================================================
--- trunk/dabo/lib/propertyHelperMixin.py 2008-08-10 16:01:16 UTC (rev
4393)
+++ trunk/dabo/lib/propertyHelperMixin.py 2008-08-10 16:10:54 UTC (rev
4394)
@@ -304,7 +304,7 @@
else:
try:
propVal = propRef.fget(cls)
- except AttributeError:
+ except StandardError:
# There are many reasons the propval
may not be determined for now,
# such as not being a live instance.
propVal = None
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py 2008-08-10 16:01:16 UTC (rev 4393)
+++ trunk/dabo/ui/uiwx/dPemMixin.py 2008-08-10 16:10:54 UTC (rev 4394)
@@ -1714,11 +1714,7 @@
def _getBackColor(self):
- try:
- return self.GetBackgroundColour().Get()
- except TypeError:
- # very early in construction
- return None
+ return self.GetBackgroundColour().Get()
def _setBackColor(self, val):
if self._constructed():
_______________________________________________
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/%(messageid)s