Use default printer settings again.
authorDiane Trout <diane@caltech.edu>
Mon, 6 Aug 2012 21:16:34 +0000 (14:16 -0700)
committerDiane Trout <diane@caltech.edu>
Mon, 6 Aug 2012 21:16:34 +0000 (14:16 -0700)
(Removing it broke things)

htsworkflow/frontend/bcmagic/utils.py

index 6ffc99f8ee045a8a217c5be195386eee348deb84..5acc6ddefd6045473ad498c000ec60ae48f8b49c 100644 (file)
@@ -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