From d6f3cf4934c39e708afdf4e57201f524fee2adc8 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Mon, 6 Aug 2012 14:16:34 -0700 Subject: [PATCH] Use default printer settings again. (Removing it broke things) --- htsworkflow/frontend/bcmagic/utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htsworkflow/frontend/bcmagic/utils.py b/htsworkflow/frontend/bcmagic/utils.py index 6ffc99f..5acc6dd 100644 --- a/htsworkflow/frontend/bcmagic/utils.py +++ b/htsworkflow/frontend/bcmagic/utils.py @@ -5,7 +5,7 @@ import socket import StringIO -def print_zpl(zpl_text, host): +def print_zpl(zpl_text, host=settings.BCPRINTER_PRINTER1_HOST): """ Sends zpl_text to printer """ @@ -15,7 +15,9 @@ def print_zpl(zpl_text, host): ftp.quit() -def print_zpl_socket(zpl_text, host, port): +def print_zpl_socket(zpl_text, + host=settings.BCPRINTER_PRINTER1_HOST, + port=settings.BCPRINTER_PRINTER1_PORT): """ Sends zpl_text to printer via a socket -- 2.30.2