[X2Go-Commits] pyhoca-gui.git - master (branch) updated: 0.4.0.7-4-gaa62bf4

X2Go dev team git-admin at x2go.org
Tue Aug 27 18:08:18 CEST 2013


The branch, master has been updated
       via  aa62bf4025877705b3ac4f562cb527aca341d1a0 (commit)
      from  a602a617df4c6a8ae546c898f7982b51661386f2 (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 aa62bf4025877705b3ac4f562cb527aca341d1a0
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Aug 27 18:08:12 2013 +0200

    Throw exceptions on ,,unknown errors'' during authentication when application is run in debug/libdebug mode.

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

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

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 2d8b0a6..b1eb9f9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ pyhoca-gui (0.4.0.8-0~x2go1) UNRELEASED; urgency=low
 
   * New upstream version (0.4.0.8):
     - Fix updating/editing session profiles.
+    - Throw exceptions on ,,unknown errors'' during authentication when
+      application is run in debug/libdebug mode.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Mon, 26 Aug 2013 14:57:59 +0200
 
diff --git a/pyhoca/wxgui/frontend.py b/pyhoca/wxgui/frontend.py
index 93dca84..dffa613 100644
--- a/pyhoca/wxgui/frontend.py
+++ b/pyhoca/wxgui/frontend.py
@@ -714,7 +714,7 @@ class PyHocaGUI(wx.App, x2go.X2GoClient):
             except ValueError:
                 pass
             connect_failed = True
-            if os.environ.has_key('PYHOCAGUI_DEVELOPMENT') and os.environ['PYHOCAGUI_DEVELOPMENT'] == '1': 
+            if self.args.debug or self.args.libdebug or (os.environ.has_key('PYHOCAGUI_DEVELOPMENT') and os.environ['PYHOCAGUI_DEVELOPMENT'] == '1'):
                 raise
 
         if connect_failed and self.exit_on_disconnect:
diff --git a/pyhoca/wxgui/logon.py b/pyhoca/wxgui/logon.py
index b3e8e7e..83e9cb5 100644
--- a/pyhoca/wxgui/logon.py
+++ b/pyhoca/wxgui/logon.py
@@ -432,7 +432,7 @@ class PyHocaGUI_DialogBoxPassword(wx.Dialog):
                                              text=_(u'An unknown error occured during authentication!'),
                                              icon='auth_error')
             connect_failed = True
-            if os.environ.has_key('PYHOCAGUI_DEVELOPMENT') and os.environ['PYHOCAGUI_DEVELOPMENT'] == '1':
+            if self._PyHocaGUI.args.debug or self._PyHocaGUI.args.libdebug or (os.environ.has_key('PYHOCAGUI_DEVELOPMENT') and os.environ['PYHOCAGUI_DEVELOPMENT'] == '1'):
                 raise
 
         self._PyHocaGUI.notifier.send(self.current_profile_name, context='AUTH_%s' % self.current_profile_name, timeout=4000)


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