Commit 34e925d6 authored by Nicolas Delaby's avatar Nicolas Delaby

Use destructor of document wrapper to cleanup temporary folder.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@40496 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent da4fae50
...@@ -133,3 +133,6 @@ class FileSystemDocument(object): ...@@ -133,3 +133,6 @@ class FileSystemDocument(object):
if exists(self.directory_name): if exists(self.directory_name):
rmtree(self.directory_name) rmtree(self.directory_name)
self.url = None self.url = None
def __del__(self):
self.trash()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment