dabo Commit
Revision 6231
Date: 2010-11-30 16:34:28 -0800 (Tue, 30 Nov 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6231
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
Fixed the recent changes to dColumn._getColumnIndex(). Also changed an old
reference to dabo.getEncoding() to dabo.defaultEncoding.
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2010-11-30 23:38:37 UTC (rev 6230)
+++ trunk/dabo/ui/uiwx/dGrid.py 2010-12-01 00:34:28 UTC (rev 6231)
@@ -724,7 +724,7 @@
"""Return our column index in the grid, or -1."""
try:
return self.Parent.Columns.index(self)
- except AttributeError:
+ except (ValueError, AttributeError):
return -1
@@ -4269,7 +4269,7 @@
try:
ret = self.getBizobj().Encoding
except AttributeError:
- ret = dabo.getEncoding()
+ ret = dabo.defaultEncoding
return ret
_______________________________________________
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]