Edgewall Software

Changes between Version 4 and Version 5 of TracDev/ConfigApi


Ignore:
Timestamp:
Jan 8, 2011, 8:29:16 AM (13 years ago)
Author:
Sebastian Krysmanski <sebastian@…>
Comment:

Added PathOption

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/ConfigApi

    v4 v5  
    113113}}}
    114114
    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":
     115The 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`).
    116116
     117Beside 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.
    117120 * `ChoiceOption` is simply an option that only has a certain set of valid values.
    118121 * `ListOption` converts the option value into a list of strings. So a list option allows for iteration like this: