2018-07-22 00:34:59 +02:00
|
|
|
class DownloadOptionChoice:
|
2015-10-15 20:12:22 +02:00
|
|
|
"""A possible choice that can be picked for some option.
|
|
|
|
|
|
|
|
An option can have one or more choices that can be picked from.
|
|
|
|
"""
|
2015-08-27 21:41:17 +02:00
|
|
|
def __init__(self, value, short_description, long_description, bool_options_description=None):
|
|
|
|
self.value = value
|
|
|
|
self.short_description = short_description
|
|
|
|
self.long_description = long_description
|
|
|
|
self.bool_options_description = bool_options_description
|
|
|
|
|
|
|
|
|
2018-07-22 00:34:59 +02:00
|
|
|
class DownloadOption:
|
2015-10-15 20:12:22 +02:00
|
|
|
"""An option for a user to select a value from several different choices."""
|
2015-08-27 21:41:17 +02:00
|
|
|
def __init__(self, option_types, long_description, short_description, default_value,
|
|
|
|
default_value_description):
|
2015-08-20 17:27:15 +02:00
|
|
|
self.option_types = option_types
|
|
|
|
self.long_description = long_description
|
|
|
|
self.short_description = short_description
|
2015-08-27 21:41:17 +02:00
|
|
|
self.default_value = default_value
|
2016-12-14 00:16:12 +01:00
|
|
|
self.default_value_description = default_value_description
|