dabo Commit
Revision 4217
Date: 2008-06-30 11:06:28 -0700 (Mon, 30 Jun 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4217

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

Log:
My prior fix wouldn't work because the call was wrapped in a callAfterInterval.
This change targets the actual line that failed.


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2008-06-30 17:46:03 UTC (rev 4216)
+++ trunk/dabo/ui/uiwx/dGrid.py 2008-06-30 18:06:28 UTC (rev 4217)
@@ -333,11 +333,8 @@
                bizobj = self.grid.getBizobj()
                col_obj = self.grid.Columns[col]
                field = col_obj.DataField
-               try:
-                       dabo.ui.callAfterInterval(200, 
col_obj._updateDynamicProps)
-                       dabo.ui.callAfterInterval(200, 
col_obj._updateCellDynamicProps, row)
-               except dabo.ui.deadObjectException:
-                       return None
+               dabo.ui.callAfterInterval(200, col_obj._updateDynamicProps)
+               dabo.ui.callAfterInterval(200, col_obj._updateCellDynamicProps, 
row)
                if bizobj:
                        if field and (row < bizobj.RowCount):
                                ret = 
self.getStringValue(bizobj.getFieldVal(field, row))
@@ -575,7 +572,10 @@
                                        oldVal = getattr(self, prop)
                                except AttributeError:
                                        needRefresh = True
-                               setattr(self, prop, func(*args, **kwargs))
+                               try:
+                                       setattr(self, prop, func(*args, 
**kwargs))
+                               except dabo.ui.deadObjectException:
+                                       needRefresh = False
                                if needRefresh or oldVal != getattr(self, prop):
                                        needRefresh = True
                if needRefresh:




_______________________________________________
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