[X2go-Commits] pyhoca-gui.git - master (branch) updated: 0.1.0.2-14-gc53d704

X2go dev team git-admin at x2go.org
Tue Jun 21 12:27:53 CEST 2011


The branch, master has been updated
       via  c53d704bed4c24773ebd4b04e765e86f69539396 (commit)
      from  dd455a3b4eda3bffb0008e68fc5876798ceb3990 (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 -----------------------------------------------------------------
commit c53d704bed4c24773ebd4b04e765e86f69539396
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Jun 21 12:27:50 2011 +0200

    Spawn initial list sessions call into background to unblock I/O during/after authentication.

-----------------------------------------------------------------------

Summary of changes:
 debian/changelog         |    4 +++-
 pyhoca/wxgui/frontend.py |    1 +
 pyhoca/wxgui/logon.py    |    8 ++++----
 3 files changed, 8 insertions(+), 5 deletions(-)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index cce2488..730420d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,8 +3,10 @@ pyhoca-gui (0.1.0.3-0~x2go1) UNRELEASED; urgency=low
   New upstream version (0.1.0.3):
     - Fix utf-8 errors during authentication.
     - Release session name on connection errors when greyed out.
+    - Spawn initial list sessions call into background to unblock I/O
+      during/after authentication.
 
- -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Sun, 19 Jun 2011 22:14:22 +0200
+ -- Mike Gabriel <mike at mimino.das-netzwerkteam.de>  Tue, 21 Jun 2011 12:27:07 +0200
 
 pyhoca-gui (0.1.0.2-0~x2go1) unstable; urgency=low
 
diff --git a/pyhoca/wxgui/frontend.py b/pyhoca/wxgui/frontend.py
index c767c91..21f44bd 100644
--- a/pyhoca/wxgui/frontend.py
+++ b/pyhoca/wxgui/frontend.py
@@ -318,6 +318,7 @@ class PyHocaGUI(wx.App, x2go.X2goClient):
     def _post_authenticate(self, evt, session_uuid):
 
         _resumed = False
+        _dummy = self.list_sessions(session_uuid, refresh_cache=True)
         if self.resume_newest_on_connect:
             _resumed = self._resume_newest_on_connect(evt, session_uuid)
         elif self.resume_oldest_on_connect:
diff --git a/pyhoca/wxgui/logon.py b/pyhoca/wxgui/logon.py
index f63a701..7010d6f 100644
--- a/pyhoca/wxgui/logon.py
+++ b/pyhoca/wxgui/logon.py
@@ -338,7 +338,6 @@ class PyHocaGUI_DialogBoxPassword(wx.Frame):
                 raise
 
         self._PyHocaGUI.notifier.send(self.current_profile_name, context='AUTH_%s' % self.current_profile_name, timeout=4000)
-        self.Close()
         wx.SetCursor(wx.StockCursor(wx.CURSOR_ARROW))
         # Windows's GUI is more picky then Linux's GTK GUI about EndBusyCursor if cursor is not busy...
         try: wx.EndBusyCursor()
@@ -349,14 +348,15 @@ class PyHocaGUI_DialogBoxPassword(wx.Frame):
             self._PyHocaGUI.ExitMainLoop()
 
         if self._PyHocaGUI._X2goClient__is_session_connected(session_uuid):
-            _dummy = self._PyHocaGUI.list_sessions(session_uuid, refresh_cache=True)
-            self._PyHocaGUI._post_authenticate(evt, session_uuid)
+            gevent.spawn(self._PyHocaGUI._post_authenticate, evt, session_uuid)
         self.sshproxy_started = False
         del self._PyHocaGUI._logon_windows[self.current_profile_name]
+
+        self.Close()
         self.Destroy()
 
     def OnCancel(self, evt):
-        self.Destroy()
+        self.Close()
 
     def Destroy(self):
         try:


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