details:   https://code.tryton.org/tryton/commit/5abc0617939c
branch:    8.2
user:      Cédric Krier <[email protected]>
date:      Mon Oct 19 12:20:05 2026 +0200
description:
        Do not list databases with empty pool

        A database may be registered in the pool but not yet initialized.
        But the database list is used to decide to initialize or not the pool.

        Closes #15183
        (grafted from a98f54c8b87b474ad5e56f2def370167e9ce266a)
diffstat:

 trytond/trytond/pool.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7f1ce0e46967 -r 5abc0617939c trytond/trytond/pool.py
--- a/trytond/trytond/pool.py   Mon Oct 19 13:07:28 2026 +0200
+++ b/trytond/trytond/pool.py   Mon Oct 19 12:20:05 2026 +0200
@@ -129,7 +129,7 @@
         :return: database list
         '''
         with cls._lock:
-            return list(cls._pools.keys())
+            return [n for n, p in cls._pools.items() if p]
 
     def init(self, update=None, lang=None, activatedeps=False, indexes=None):
         '''

Reply via email to