dabo Commit
Revision 6728
Date: 2011-07-26 07:02:40 -0700 (Tue, 26 Jul 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6728

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

Log:
Customers have been reporting dead object errors in dynamic grid columns still.
Hopefully this licks it. I'm unable to reproduce on my system so I'll have to
wait until I release my app and let people run with it for a week or so to be 
sure.


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2011-07-20 15:15:04 UTC (rev 6727)
+++ trunk/dabo/ui/uiwx/dGrid.py 2011-07-26 14:02:40 UTC (rev 6728)
@@ -789,7 +789,11 @@
        def _setCellProp(self, wxPropName, *args, **kwargs):
                """Called from all of the Cell property setters."""
                ## dynamic prop uses cellDynamicRow; reg prop uses 
self.CurrentRow
-               row = getattr(self, "_cellDynamicRow", self.Parent.CurrentRow)
+               try:
+                       row = getattr(self, "_cellDynamicRow", 
self.Parent.CurrentRow)
+               except dabo.ui.deadObjectException:
+                       # @dabo.ui.deadCheck didn't seem to work...
+                       return 
                cellAttr = obj = self._gridCellAttrs.get(row, 
self._gridColAttr.Clone())
                if "." in wxPropName:
                        # For instance, Font.SetWeight



_______________________________________________
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