Changeset 4126

Show
Ignore:
Timestamp:
08/11/08 00:29:39 (3 months ago)
Author:
abbywinterscom
Message:

prevent KeyError: 'value' errors

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gridmodifyplugin/0.11/gridmod/web_ui.py

    r4125 r4126  
    8585                    # we force a blank option in in the case where the 
    8686                    # _default_ value is blank. 
    87                     if(field['value'] == '' and not ('' in field['options'])): 
     87                    if(field.has_key('value') and field['value'] == '' and not ('' in field['options'])): 
    8888                        select.append(tag.option()) 
    8989                    for option in field['options']: