Changes between Version 4 and Version 5 of TracDev/ConfigApi
- Timestamp:
- Jan 8, 2011, 8:29:16 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/ConfigApi
v4 v5 113 113 }}} 114 114 115 The option value has automatically been converted to `float`. If you had simply used `Option` (instead of `FloatOption`), the value would have been a string (instead of a `float`). Beside these "simple" types (`BoolOption`, `IntOption`, `FloatOption`) there are also options with a little bit more "magic":115 The option value has automatically been converted to `float`. If you had simply used `Option` (instead of `FloatOption`), the value would have been a string (instead of a `float`). 116 116 117 Beside these "simple" types (`BoolOption`, `IntOption`, `FloatOption`) there are also options with a little bit more "magic": 118 119 * `PathOption` simply describes a path that can be absolute or relative. The option will always return the absolute path. 117 120 * `ChoiceOption` is simply an option that only has a certain set of valid values. 118 121 * `ListOption` converts the option value into a list of strings. So a list option allows for iteration like this: