dabo Commit
Revision 3195
Date: 2007-06-22 04:56:29 -0700 (Fri, 22 Jun 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3195
Changed:
U trunk/dabo/ui/uiwx/dSizerMixin.py
Log:
Changed the way the situation where trying to reference a sizer's Parent
property when it doesn't have a parent set and is not nested in a sizer that
does is handled. Previously, an errorLog message was printed, and this was
confusing to many users. Instead, a RuntimeError is now raised; this can then
be caught and handled without notifying the user if it is expected.
Diff:
Modified: trunk/dabo/ui/uiwx/dSizerMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dSizerMixin.py 2007-06-22 03:22:09 UTC (rev 3194)
+++ trunk/dabo/ui/uiwx/dSizerMixin.py 2007-06-22 11:56:29 UTC (rev 3195)
@@ -786,8 +786,7 @@
cs = ob.ControllingSizer
if cs is None:
# Something's wrong!
- dabo.logError(_("Nested sizer missing its
ControllingSizer"))
- break
+ raise RuntimeError, _("Nested sizer missing its
ControllingSizer")
else:
ob = cs
ret = ob._parent
_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]