details: https://code.tryton.org/tryton/commit/95e0a323def3
branch: 8.0
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 4bc2e6ab11a6 -r 95e0a323def3 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
@@ -128,7 +128,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):
'''