changeset 66bc701df6a0 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=66bc701df6a0
description:
Remove _FileCache file from the FS when they're not used anymore
issue8311
review261391002
diffstat:
tryton/gui/window/view_form/model/field.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 8b0eac26c0cc -r 66bc701df6a0 tryton/gui/window/view_form/model/field.py
--- a/tryton/gui/window/view_form/model/field.py Wed May 01 22:20:52
2019 +0200
+++ b/tryton/gui/window/view_form/model/field.py Thu May 02 12:11:35
2019 +0200
@@ -905,6 +905,12 @@
def __init__(self, path):
self.path = path
+ def __del__(self):
+ try:
+ os.remove(self.path)
+ except IOError:
+ pass
+
class BinaryField(Field):