[X2Go-Commits] python-x2go.git - build-baikal (branch) updated: 0.0.36.1-27-gcd85ebe

X2Go dev team git-admin at x2go.org
Wed Jan 8 15:29:58 CET 2014


The branch, build-baikal has been updated
       via  cd85ebe4f8c760e2497b4e9a3a0704f5eafda455 (commit)
      from  b8456f581af501f1a6e9fe65ae098686a50b13b3 (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, 5 insertions(+), 4 deletions(-)

The diff of changes is:
diff --git a/x2go/printactions.py b/x2go/printactions.py
index c3ce4fe..3a09c15 100644
--- a/x2go/printactions.py
+++ b/x2go/printactions.py
@@ -294,7 +294,7 @@ class X2goPrintActionPRINT(X2goPrintAction):
             _default_printer = win32print.GetDefaultPrinter()
             if self.printer:
                 _printer = self.printer
-                win32print.SetDefaultPrinter(_printer)
+                #win32print.SetDefaultPrinter(_printer)
             else:
                 _printer = _default_printer
             self.logger('printing incoming PDF file %s' % pdf_file, loglevel=log.loglevel_NOTICE)
@@ -302,9 +302,9 @@ class X2goPrintActionPRINT(X2goPrintAction):
             try:
                 win32api.ShellExecute (
                       0,
-                      "print",
+                      "printto",
                       pdf_file,
-                      None,
+                      _printer,
                       ".",
                       0
                 )
@@ -316,7 +316,8 @@ class X2goPrintActionPRINT(X2goPrintAction):
                     self.logger('Encountered win32api.error: %s' % str(e), loglevel=log.loglevel_ERROR)
 
             if self.printer:
-                win32print.SetDefaultPrinter(_default_printer)
+                #win32print.SetDefaultPrinter(_default_printer)
+                pass
 
         else:
             _hr_filename = self._humanreadable_filename(pdf_file, job_title, spool_dir)


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