Edgewall Software

Changes between Version 5 and Version 6 of TracDev/ConfigApi


Ignore:
Timestamp:
Jan 8, 2011, 9:49:53 AM (13 years ago)
Author:
Remy Blank
Comment:

Clarified relative path resolution in PathOption. The same applies to config.getpath(), actually.

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/ConfigApi

    v5 v6  
    117117Beside these "simple" types (`BoolOption`, `IntOption`, `FloatOption`) there are also options with a little bit more "magic":
    118118
    119  * `PathOption` simply describes a path that can be absolute or relative. The option will always return the absolute path.
     119 * `PathOption` simply describes a path that can be absolute or relative. The option always returns an absolute path. Relative paths are resolved relative to the `conf` directory of the environment.
    120120 * `ChoiceOption` is simply an option that only has a certain set of valid values.
    121121 * `ListOption` converts the option value into a list of strings. So a list option allows for iteration like this: