Add options to trytond.config

Closes #14483
This commit is contained in:
Cédric Krier
2026-01-13 20:08:43 +01:00
parent af815d48e2
commit 1623885d46
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -53,6 +53,10 @@ The config gives access to the configuration.
Removes the named section.
.. function:: options(section)
Returns a list of option names for the given section.
.. function:: set(section, option[, value])
Set the given option to the specified value.
+1
View File
@@ -154,6 +154,7 @@ def update_etc(configfile=os.environ.get('TRYTOND_CONFIG')):
has_section = _config.has_section
add_section = _config.add_section
remove_section = _config.remove_section
options = _config.options
def set(section, option, value=None):