[X2Go-Commits] python-x2go.git - build-baikal (branch) updated: 0.0.36.1-25-g443ebca
X2Go dev team
git-admin at x2go.org
Wed Jan 8 15:29:58 CET 2014
The branch, build-baikal has been updated
via 443ebca878a63dcecdb2634ee4dbacc2f24e2e68 (commit)
from 3569969754f36a7b29804440b421090917536ee7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
x2go/printactions.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
The diff of changes is:
diff --git a/x2go/printactions.py b/x2go/printactions.py
index a1551e2..7f0e79e 100644
--- a/x2go/printactions.py
+++ b/x2go/printactions.py
@@ -291,11 +291,14 @@ class X2goPrintActionPRINT(X2goPrintAction):
"""
_hr_filename = self._humanreadable_filename(pdf_file, job_title, spool_dir)
if _X2GOCLIENT_OS == 'Windows':
+ _default_printer = win32print.GetDefaultPrinter()
if self.printer:
- _default_printer = win32print.GetDefaultPrinter()
- win32print.SetDefaultPrinter(self.printer)
+ _printer = self.printer
+ win32print.SetDefaultPrinter(_printer)
+ else:
+ _printer = _default_printer
self.logger('printing incoming PDF file %s' % pdf_file, loglevel=log.loglevel_NOTICE)
- self.logger('printer name is %s' % _printer, loglevel=log.loglevel_DEBUG)
+ self.logger('printer name is ,,%s\'\'' % _printer, loglevel=log.loglevel_DEBUG)
try:
win32api.ShellExecute (
0,
hooks/post-receive
--
python-x2go.git (Python X2Go Client API)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-x2go.git" (Python X2Go Client API).
More information about the x2go-commits
mailing list