details: https://code.tryton.org/tryton/commit/f9ff4d1d9253
branch: 8.2
user: Cédric Krier <[email protected]>
date: Wed Nov 04 16:11:06 2026 +0100
description:
Use empty string as value for file to delete without prefix
The FileStore accepts only strings as prefix.
Closes #15216
(grafted from d05be8c270ac81d814710182a080890e83c48840)
diffstat:
trytond/trytond/ir/filestore.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r e70ce527dcdf -r f9ff4d1d9253 trytond/trytond/ir/filestore.py
--- a/trytond/trytond/ir/filestore.py Wed Nov 04 16:07:16 2026 +0100
+++ b/trytond/trytond/ir/filestore.py Wed Nov 04 16:11:06 2026 +0100
@@ -75,7 +75,7 @@
where=fields.SQL_OPERATORS['in'](
file_id_col, deleted_ids)))
active_ids.update(r[0] for r in cursor)
- to_remove[prefix].extend(deleted_ids - active_ids)
+ to_remove[prefix or ''].extend(deleted_ids - active_ids)
for store_prefix, to_delete in to_remove.items():
filestore.delete_many(to_delete, prefix=store_prefix)