dabo Commit
Revision 4188
Date: 2008-06-26 06:42:35 -0700 (Thu, 26 Jun 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4188

Changed:
U   trunk/dabo/ui/uiwx/dPemMixin.py

Log:
Added code to catch an exception in the Parent getter.


Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py     2008-06-26 13:14:01 UTC (rev 4187)
+++ trunk/dabo/ui/uiwx/dPemMixin.py     2008-06-26 13:42:35 UTC (rev 4188)
@@ -2295,7 +2295,10 @@
                
                
        def _getParent(self):
-               return self.GetParent()
+               try:
+                       return self.GetParent()
+               except TypeError:
+                       return None
        
        def _setParent(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/[EMAIL PROTECTED]

Reply via email to