[Checkins] SVN: zopyx.smartprintng.client/trunk/ better output directory handling

Andreas Jung andreas at andreas-jung.com
Sat Mar 27 02:04:56 EDT 2010


Log message for revision 110229:
  better output directory handling
  

Changed:
  U   zopyx.smartprintng.client/trunk/docs/HISTORY.txt
  U   zopyx.smartprintng.client/trunk/setup.py
  U   zopyx.smartprintng.client/trunk/zopyx/smartprintng/client/zip_client.py

-=-
Modified: zopyx.smartprintng.client/trunk/docs/HISTORY.txt
===================================================================
--- zopyx.smartprintng.client/trunk/docs/HISTORY.txt	2010-03-27 04:09:55 UTC (rev 110228)
+++ zopyx.smartprintng.client/trunk/docs/HISTORY.txt	2010-03-27 06:04:55 UTC (rev 110229)
@@ -1,6 +1,11 @@
 Changelog
 =========
 
+0.5.4 (2010-03-28)
+------------------
+* better output directory handling
+
+
 0.5.3 (2010-03-27)
 ------------------
 * fixing racing condition in handling of the output directory

Modified: zopyx.smartprintng.client/trunk/setup.py
===================================================================
--- zopyx.smartprintng.client/trunk/setup.py	2010-03-27 04:09:55 UTC (rev 110228)
+++ zopyx.smartprintng.client/trunk/setup.py	2010-03-27 06:04:55 UTC (rev 110229)
@@ -7,7 +7,7 @@
 from setuptools import setup, find_packages
 import os
 
-version = '0.5.3'
+version = '0.5.4'
 
 setup(name='zopyx.smartprintng.client',
       version=version,

Modified: zopyx.smartprintng.client/trunk/zopyx/smartprintng/client/zip_client.py
===================================================================
--- zopyx.smartprintng.client/trunk/zopyx/smartprintng/client/zip_client.py	2010-03-27 04:09:55 UTC (rev 110228)
+++ zopyx.smartprintng.client/trunk/zopyx/smartprintng/client/zip_client.py	2010-03-27 06:04:55 UTC (rev 110229)
@@ -8,6 +8,7 @@
 import os
 import sys
 import base64
+import time
 import xmlrpclib
 import zipfile
 import tempfile
@@ -21,7 +22,7 @@
         self.port = port
         self.username = username
         self.password = password
-        self.setOutputDirectory(tempfile.mkdtemp(prefix='smartprintng_client_'))
+        self.setOutputDirectory(os.path.join(tempfile.gettempdir(), 'smartprintng_client', str(time.time())))
 
     def setOutputDirectory(self, output_directory):
         if not os.path.exists(output_directory):



More information about the checkins mailing list