[X2Go-Commits] python-x2go.git - build-baikal (branch) updated: 0.0.44.2-16-g612d10e

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


The branch, build-baikal has been updated
       via  612d10e9dafefc247120c531c379b226ab27ce7f (commit)
      from  5237fa7e404a32d5db858efb91d0b5940e40a56c (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/printqueue.py |   23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

The diff of changes is:
diff --git a/x2go/printqueue.py b/x2go/printqueue.py
index a71f636..4529c9f 100644
--- a/x2go/printqueue.py
+++ b/x2go/printqueue.py
@@ -50,7 +50,7 @@ from defaults import X2GO_PRINTING_FILENAME as _X2GO_PRINTING_FILENAME
 
 class X2goPrintQueue(threading.Thread):
     """\
-    If X2go printing is supported in a particaluar L{X2goSession} instance
+    If X2go printing is supported in a particular L{X2goSession} instance
     this class provides a sub-thread for handling incoming X2go print jobs.
 
     """
@@ -60,7 +60,16 @@ class X2goPrintQueue(threading.Thread):
     active_jobs = {}
     job_history = []
 
-    def __init__(self, profile_name='UNKNOWN', session_name='UNKNOWN', spool_dir=None, print_action=None, print_action_args={}, client_instance=None, printing_backend=_X2goClientPrinting, logger=None, loglevel=log.loglevel_DEFAULT):
+    def __init__(self, 
+                 profile_name='UNKNOWN',
+                 session_name='UNKNOWN',
+                 spool_dir=None,
+                 print_action=None,
+                 print_action_args={},
+                 client_instance=None,
+                 printing_backend=_X2goClientPrinting,
+                 logger=None,
+                 loglevel=log.loglevel_DEFAULT):
         """\
         @param profile_name: name of the session profile this print queue belongs to
         @type profile_name: C{str}
@@ -102,6 +111,10 @@ class X2goPrintQueue(threading.Thread):
         self._accept_jobs = True
 
     def __del__(self):
+        """\
+        Class destructor.
+
+        """
         self.stop_thread()
 
     def pause(self):
@@ -159,6 +172,12 @@ class X2goPrintQueue(threading.Thread):
         Modify the print action of this L{X2goPrintQueue} thread during runtime. The 
         change of print action will be valid for the next incoming print job.
 
+        As kwargs you can pass arguments for the print action class to be set. Refer
+        to the class descriptions of L{X2goPrintActionDIALOG}, L{X2goPrintActionPDFVIEW},
+        L{X2goPrintActionPRINT}, etc.
+
+        @param print_action: new print action to be valid for incoming print jobs
+        @type print_action: C{str} or C{class}
         """
         if print_action in defaults.X2GO_PRINT_ACTIONS.keys():
             print_action = defaults.X2GO_PRINT_ACTIONS[print_action]


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