details: https://code.tryton.org/tryton/commit/fcda7f8e0b78
branch: 7.8
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 e8203dae4102 -r fcda7f8e0b78 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):
'''