From 1623885d461601225d9ae78a5d9b76b8a8c0ee50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 13 Jan 2026 20:08:43 +0100 Subject: [PATCH] Add options to trytond.config Closes #14483 --- trytond/doc/ref/config.rst | 4 ++++ trytond/trytond/config.py | 1 + 2 files changed, 5 insertions(+) diff --git a/trytond/doc/ref/config.rst b/trytond/doc/ref/config.rst index f8f89ad433..f4c5fcf549 100644 --- a/trytond/doc/ref/config.rst +++ b/trytond/doc/ref/config.rst @@ -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. diff --git a/trytond/trytond/config.py b/trytond/trytond/config.py index 7d76212767..bff6742796 100644 --- a/trytond/trytond/config.py +++ b/trytond/trytond/config.py @@ -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):