[X2Go-Commits] pyhoca-gui.git - twofactorauth (branch) updated: 0.1.0.10-76-g7760963

X2Go dev team git-admin at x2go.org
Sat Sep 14 15:55:38 CEST 2013


The branch, twofactorauth has been updated
       via  7760963880bde6ac0531dac086abd92038c0fec3 (commit)
      from  84074f170c26a8d2431571dfbbc64a7aa3464236 (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:
 debian/changelog         |    2 ++
 pyhoca/wxgui/frontend.py |   12 ++++++++++++
 2 files changed, 14 insertions(+)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 6fe11a4..176e389 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -43,6 +43,8 @@ pyhoca-gui (0.1.2.0-0~x2go1) UNRELEASED; urgency=low
       capable.
     - Handle the situation that no printer is installed with CUPS/WinSpool
       gracefully.
+    - Hook methods that notify about non-availabilities around printing,
+      MIME box, local folder sharing.
   * Depend on Python X2Go 0.1.2.0.
   * Install GNOME icons via dh_links.
   * Install X2Go icons with explicit install paths.
diff --git a/pyhoca/wxgui/frontend.py b/pyhoca/wxgui/frontend.py
index 57338ca..78ace46 100644
--- a/pyhoca/wxgui/frontend.py
+++ b/pyhoca/wxgui/frontend.py
@@ -829,6 +829,18 @@ class PyHocaGUI(wx.App, x2go.X2goClient):
     def HOOK_on_sound_tunnel_failed(self, profile_name='UNKNOWN', session_name='UNKNOWN'):
         self.notifier.send(_(u'%s - audio problem') % profile_name, _(u'The audio connection could not be set up for this session.\n%s') % session_name, icon='session_warning', timeout=5000)
 
+    def HOOK_printing_not_available(self, profile_name='UNKNOWN', session_name='UNKNOWN'):
+        self.notifier.send(_(u'%s - client-side printing not available') % profile_name, _(u'The server denies client-side printing from within this session.\n%s') % session_name, icon='session_warning', timeout=5000)
+
+    def HOOK_mimebox_not_available(self, profile_name='UNKNOWN', session_name='UNKNOWN'):
+        self.notifier.send(_(u'%s - MIMEBOX not available') % profile_name, _(u'The server does not support the X2Go MIME box.\n%s') % session_name, icon='session_warning', timeout=5000)
+
+    def HOOK_foldersharing_not_available(self, profile_name='UNKNOWN', session_name='UNKNOWN'):
+        self.notifier.send(_(u'%s - client-side folders not sharable') % profile_name, _(u'The server denies client-side folder sharing with this session.\n%s') % session_name, icon='session_warning', timeout=5000)
+
+    def HOOK_sshfs_not_available(self, profile_name='UNKNOWN', session_name='UNKNOWN'):
+        self.notifier.send(_(u'%s - client resources not sharable') % profile_name, _(u'Client-side folders and printers cannot be shared with this session.\n%s') % session_name, icon='session_warning', timeout=5000)
+
     # this hook gets called from Python X2Go classes if a print job is coming in and the print action is ,,DIALOG''...
     def HOOK_open_print_dialog(self, profile_name='UNKNOWN', session_name='UNKNOWN'):
         _print_action = None


hooks/post-receive
-- 
pyhoca-gui.git (Python X2Go Client (wxPython GUI))

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 "pyhoca-gui.git" (Python X2Go Client (wxPython GUI)).




More information about the x2go-commits mailing list