[Erp5-report] r40496 nicolas - /erp5/trunk/utils/cloudooo/cloudooo/document.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Nov 22 17:36:31 CET 2010
Author: nicolas
Date: Mon Nov 22 17:36:30 2010
New Revision: 40496
URL: http://svn.erp5.org?rev=40496&view=rev
Log:
Use destructor of document wrapper to cleanup temporary folder.
Modified:
erp5/trunk/utils/cloudooo/cloudooo/document.py
Modified: erp5/trunk/utils/cloudooo/cloudooo/document.py
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/document.py?rev=40496&r1=40495&r2=40496&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/document.py [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/document.py [utf8] Mon Nov 22 17:36:30 2010
@@ -133,3 +133,6 @@ class FileSystemDocument(object):
if exists(self.directory_name):
rmtree(self.directory_name)
self.url = None
+
+ def __del__(self):
+ self.trash()
More information about the Erp5-report
mailing list