dabo Commit
Revision 4321
Date: 2008-07-25 09:49:09 -0700 (Fri, 25 Jul 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4321
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
oldVal can be undefined in a corner case. Here's the traceback in the error log
I received:
"""
User Timestamp: 2008-07-25 16:41:45.078000
Server Timestamp: 2008-07-25 16:38:22.260359
Version, Platform: 0.9.21 Windows-XP-5.1.2600-SP2
Exception Object: local variable 'oldVal' referenced before assignment
Exception Type: <type 'exceptions.UnboundLocalError'>
Active Form: None
Active Control: None
Traceback (most recent call last):
File "wx\_misc.pyo", line 1341, in Notify
File "wx\_core.pyo", line 14470, in Notify
File "dabo\ui\uiwx\dGrid.pyo", line 581, in _updateCellDynamicProps
<type 'exceptions.UnboundLocalError'>: local variable 'oldVal' referenced
before assignment
"""
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2008-07-24 22:07:44 UTC (rev 4320)
+++ trunk/dabo/ui/uiwx/dGrid.py 2008-07-25 16:49:09 UTC (rev 4321)
@@ -563,6 +563,7 @@
kwargs = {"row": row}
self._cellDynamicRow = row
needRefresh = False
+ oldVal = None
for prop, func in self._dynamic.items():
if prop[:4] == "Cell":
if isinstance(func, tuple):
_______________________________________________
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]