From be8766594eec08216da5ad0984ee410803f46fb5 Mon Sep 17 00:00:00 2001 From: Brandon King Date: Thu, 14 May 2009 21:42:56 +0000 Subject: [PATCH] Fix for ticket:135. * It is apparently helpful to close the connection with the ftp server upon printing. --- samplebc/samples/views.py | 1 + 1 file changed, 1 insertion(+) 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): -- 2.30.2