[X2Go-Commits] pyhoca-gui.git - build-baikal (branch) updated: 0.4.0.8-13-g37da9f7
X2Go dev team
git-admin at x2go.org
Wed Jan 8 15:35:21 CET 2014
The branch, build-baikal has been updated
via 37da9f7a1e3a5d4f5fe64a36cf8872df35f10db9 (commit)
from f4642cff11b19b57821f87b76d2f1baf2a1f1153 (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 | 1 +
pyhoca/wxgui/frontend.py | 13 +++++++++++++
2 files changed, 14 insertions(+)
The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 9367f05..4ac48df 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ pyhoca-gui (0.4.0.9-0~x2go1) UNRELEASED; urgency=low
(Fixes: #321).
- Become aware of new Python X2Go hook method
(HOOK_on_failing_SFTP_client).
+ - Become aware of new Python X2Go hook method (HOOK_desktop_sharing_denied).
* /debian/copyright:
+ Update file. Add entry for file icon2exe.py.
* /debian/control:
diff --git a/pyhoca/wxgui/frontend.py b/pyhoca/wxgui/frontend.py
index 5f7b14b..e9d6b63 100644
--- a/pyhoca/wxgui/frontend.py
+++ b/pyhoca/wxgui/frontend.py
@@ -1591,6 +1591,19 @@ class PyHocaGUI(wx.App, x2go.X2GoClient):
self.WakeUpIdle()
self.ExitMainLoop()
+ def HOOK_desktop_sharing_denied(self, profile_name='UNKNOWN', **kwargs):
+ """\
+ Notify about the denial of desktop sharing by the other user.
+
+ @param profile_name: profile name of session that called this hook method
+ @type profile_name: C{str}
+
+ """
+ self.notifier.send(_(u'%s - desktop sharing failure') % profile_name, _(u'Desktop sharing was denied by the other user or\nboth of you have insufficient privileges to share one another\'s desktop.'), icon='session_error', timeout=10000)
+ if self.exit_on_disconnect:
+ self.WakeUpIdle()
+ self.ExitMainLoop()
+
def HOOK_list_desktops_timeout(self, profile_name='UNKNOWN', **kwargs):
"""\
Notify about x2golistdesktops timeout events.
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