Menu

Commit [r6280]  Maximize  Restore  History

Updated the `trac.config.Configuration.get*() and Section.get*()` methods to be more consistent in their input and return values - with recommended default of string or 'base type' signified by method name, and always looking to return the 'base type'.

Introduces a `Configuration.has_option(section, option)` that checks for the existence of an option somewhere in project trac.ini file, inherited trac.ini file, or in the options registry.

Updated method documentation + added some tests.

Closing #4977.

osimons 2007-12-04

changed /trunk/trac/config.py
changed /trunk/trac/tests/config.py
/trunk/trac/config.py Diff Switch to side-by-side view
Loading...
/trunk/trac/tests/config.py Diff Switch to side-by-side view
Loading...