dabo Commit
Revision 4483
Date: 2008-08-28 14:46:19 -0700 (Thu, 28 Aug 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4483
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
Attempted fix to current problem with grid in ClassDesigner.
Return False from IsEmptyCell unconditionally, which takes away
the need for a round-trip to the bizobj.
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2008-08-28 21:16:02 UTC (rev 4482)
+++ trunk/dabo/ui/uiwx/dGrid.py 2008-08-28 21:46:19 UTC (rev 4483)
@@ -299,6 +299,7 @@
def IsEmptyCell(self, row, col):
if row >= self.grid.RowCount:
return True
+ return False
bizobj = self.grid.getBizobj()
field = self.grid.Columns[col].DataField
if bizobj:
@@ -333,7 +334,7 @@
else:
try:
ret = self.grid.DataSet[row][field]
- except (IndexError, KeyError):
+ except (TypeError, IndexError, KeyError):
ret = ""
if ret is None:
ret = self.grid.NoneDisplay
_______________________________________________
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]