projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3175dd4
)
Use default printer settings again.
author
Diane Trout
<diane@caltech.edu>
Mon, 6 Aug 2012 21:16:34 +0000
(14:16 -0700)
committer
Diane Trout
<diane@caltech.edu>
Mon, 6 Aug 2012 21:16:34 +0000
(14:16 -0700)
(Removing it broke things)
htsworkflow/frontend/bcmagic/utils.py
patch
|
blob
|
history
diff --git
a/htsworkflow/frontend/bcmagic/utils.py
b/htsworkflow/frontend/bcmagic/utils.py
index 6ffc99f8ee045a8a217c5be195386eee348deb84..5acc6ddefd6045473ad498c000ec60ae48f8b49c 100644
(file)
--- 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