From: Diane Trout Date: Mon, 6 Aug 2012 21:16:34 +0000 (-0700) Subject: Use default printer settings again. X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=d6f3cf4934c39e708afdf4e57201f524fee2adc8 Use default printer settings again. (Removing it broke things) --- 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