[Checkins] SVN: z3c.form/trunk/src/z3c/form/ Don't leave temporary files lying around, it's not polite.

Marius Gedminas marius at pov.lt
Fri Sep 28 18:10:07 EDT 2007


Log message for revision 80356:
  Don't leave temporary files lying around, it's not polite.
  
  

Changed:
  U   z3c.form/trunk/src/z3c/form/widget.txt
  U   z3c.form/trunk/src/z3c/form/zcml.txt

-=-
Modified: z3c.form/trunk/src/z3c/form/widget.txt
===================================================================
--- z3c.form/trunk/src/z3c/form/widget.txt	2007-09-28 22:04:23 UTC (rev 80355)
+++ z3c.form/trunk/src/z3c/form/widget.txt	2007-09-28 22:10:07 UTC (rev 80356)
@@ -510,3 +510,13 @@
 sent out internally by the widget's ``update()`` method. The event was
 designed to provide an additional hook between updating the widget and
 rendering it.
+
+
+Cleanup
+-------
+
+Let's not leave temporary files lying around
+
+  >>> import os
+  >>> os.remove(textWidgetTemplate)
+

Modified: z3c.form/trunk/src/z3c/form/zcml.txt
===================================================================
--- z3c.form/trunk/src/z3c/form/zcml.txt	2007-09-28 22:04:23 UTC (rev 80355)
+++ z3c.form/trunk/src/z3c/form/zcml.txt	2007-09-28 22:10:07 UTC (rev 80356)
@@ -108,3 +108,9 @@
 Now we need to clean up the custom module.
 
   >>> del sys.modules['custom']
+
+Also let's not leave temporary files lying around
+
+  >>> import shutil
+  >>> shutil.rmtree(temp_dir)
+



More information about the Checkins mailing list