details:   https://code.tryton.org/tryton/commit/74a98e6f19b6
branch:    7.8
user:      Cédric Krier <[email protected]>
date:      Tue Jan 13 20:08:43 2026 +0100
description:
        Add options to trytond.config

        Closes #14483
        (grafted from 690df2a9ddbf01d7b64fc59cfcc31a387a1e9552)
diffstat:

 trytond/doc/ref/config.rst |  4 ++++
 trytond/trytond/config.py  |  1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diffs (25 lines):

diff -r 520f0f38eb72 -r 74a98e6f19b6 trytond/doc/ref/config.rst
--- a/trytond/doc/ref/config.rst        Tue Jan 13 15:47:25 2026 +0100
+++ b/trytond/doc/ref/config.rst        Tue Jan 13 20:08:43 2026 +0100
@@ -53,6 +53,10 @@
 
    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 -r 520f0f38eb72 -r 74a98e6f19b6 trytond/trytond/config.py
--- a/trytond/trytond/config.py Tue Jan 13 15:47:25 2026 +0100
+++ b/trytond/trytond/config.py Tue Jan 13 20:08:43 2026 +0100
@@ -154,6 +154,7 @@
 has_section = _config.has_section
 add_section = _config.add_section
 remove_section = _config.remove_section
+options = _config.options
 
 
 def set(section, option, value=None):

Reply via email to