From: Brandon King Date: Thu, 14 May 2009 21:42:56 +0000 (+0000) Subject: Fix for ticket:135. X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=be8766594eec08216da5ad0984ee410803f46fb5 Fix for ticket:135. * It is apparently helpful to close the connection with the ftp server upon printing. --- diff --git a/samplebc/samples/views.py b/samplebc/samples/views.py index 8069f7d..2d3825c 100644 --- a/samplebc/samples/views.py +++ b/samplebc/samples/views.py @@ -36,6 +36,7 @@ def print_zpl(zpl_text): ftp = ftplib.FTP(host='131.215.54.194', user='blank', passwd='') ftp.login() ftp.storlines("STOR printme.txt", StringIO.StringIO(zpl_text)) + ftp.quit() def __center_line(line, width):