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
"""