def toConfigHolder(section, config, values): holder = ConfigHolder(section, config.label, config.description, config.explanation) holder.items = [ ConfigItem(option, x.label, x.description, x.input, to_string(values.get(option, x.input.default_value))) for option, x in config.config.iteritems() ] return holder
def toConfigHolder(section, config, values): holder = ConfigHolder(section, config.name, config.description, config.long_desc) holder.items = [ ConfigItem(option, x.name, x.description, x.type, to_string(x.default), to_string(values.get(option, x.default))) for option, x in config.config.iteritems() ] return holder
def toConfigHolder(section, config, values): holder = ConfigHolder(section, config.label, config.description, config.explanation) holder.items = [ConfigItem(option, x.label, x.description, x.input, to_string(values.get(option, x.input.default_value))) for option, x in config.config.iteritems()] return holder
def toConfigHolder(section, config, values): holder = ConfigHolder(section, config.name, config.description, config.long_desc) holder.items = [ConfigItem(option, x.name, x.description, x.type, to_string(x.default), to_string(values.get(option, x.default))) for option, x in config.config.iteritems()] return holder