Changeset c79d50d in mainline for tools/config.py


Ignore:
Timestamp:
2009-03-08T12:15:33Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4d29d01
Parents:
71385d4f
Message:

indicate undefined configuration options more explicitly
(the "None" was not clear enought and might get confused with "none" value)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/config.py

    r71385d4f rc79d50d  
    338338                                                continue
    339339                                       
    340                                         options.append("     %s [%s] --> " % (name, default))
     340                                        if (default == None):
     341                                                options.append("?     %s --> " % name)
     342                                        else:
     343                                                options.append("      %s [%s] --> " % (name, default))
    341344                                elif (vartype == 'y'):
    342345                                        defaults[varname] = '*'
     
    346349                                                default = 'y'
    347350                                                defaults[varname] = default
    348                                         options.append(" <%s> %s " % (yes_no(default), name))
     351                                        options.append("  <%s> %s " % (yes_no(default), name))
    349352                                elif (vartype == 'n/y'):
    350353                                        if (default == None):
    351354                                                default = 'n'
    352355                                                defaults[varname] = default
    353                                         options.append(" <%s> %s " % (yes_no(default), name))
     356                                        options.append("  <%s> %s " % (yes_no(default), name))
    354357                                else:
    355358                                        raise RuntimeError("Unknown variable type: %s" % vartype)
     
    378381                                        break
    379382                                else:
    380                                         xtui.error_dialog(screen, 'Error', 'Some options have still undefined values.')
     383                                        xtui.error_dialog(screen, 'Error', 'Some options have still undefined values. These options are marked with the "?" sign.')
    381384                                        continue
    382385                       
Note: See TracChangeset for help on using the changeset viewer.