Changeset 52387

Show
Ignore:
Timestamp:
01/09/08 17:58:47 (2 years ago)
Author:
madarche
Message:

- #1872: DateTimeFilter? Widget can fail on empty inputs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • CPS3/products/CPSDashboards/trunk/CHANGES

    r52365 r52387  
    77Bug fixes 
    88~~~~~~~~~ 
    9 - #1877: Path Widget needs to be hooked to a proxy 
     9- #1877: Path Widget needs to be hooked to a proxy. 
     10- #1872: DateTimeFilter Widget can fail on empty inputs. 
    1011New internal features 
    1112~~~~~~~~~~~~~~~~~~~~~ 
  • CPS3/products/CPSDashboards/trunk/widgets/filter_widgets.py

    r52365 r52387  
    564564            cheat_dm = {} 
    565565            cheat_ds = DataStructure(data=subvalues, datamodel=cheat_dm) 
     566            if subkeys[0] not in cheat_ds: 
     567                # the most significative is missing -> None  
     568                # (used to cause KeyError) 
     569                datastructure[wid] = None 
     570                return 
    566571            if subkeys[1] not in cheat_ds: 
    567572                cheat_ds[subkeys[1]] = self.time_hour_default