Changeset 4321

Show
Ignore:
Timestamp:
07/25/08 09:49:09 (3 months ago)
Author:
paul
Message:

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

"""

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/dGrid.py

    r4303 r4321  
    564564        self._cellDynamicRow = row 
    565565        needRefresh = False 
     566        oldVal = None 
    566567        for prop, func in self._dynamic.items(): 
    567568            if prop[:4] == "Cell":