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

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


The branch, twofactorauth has been updated
       via  69050e8fca3b4e468f09bf51534b859c328ab86d (commit)
      from  1bafcdd48927872f3c265a528ff31958e14f3c93 (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-gui               |    2 +-
 pyhoca/wxgui/frontend.py |   17 +++++++++++++++--
 3 files changed, 18 insertions(+), 3 deletions(-)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 582bc18..f5bd84b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -71,6 +71,8 @@ pyhoca-gui (0.1.2.0-0~x2go1) UNRELEASED; urgency=low
     - Show the detected GUI language in GUI output.
     - Add support for published applications with no category submenus.
       Introduce cmd line option --published-applications-no-submenus <int>.
+    - The maximum number of menu items in published applications mode can now
+      be specified as a session option for X2goSession instances.
   * 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-gui b/pyhoca-gui
index c831ab0..3a2c3e8 100755
--- a/pyhoca-gui
+++ b/pyhoca-gui
@@ -188,7 +188,7 @@ x2go_gui_options = [
                    {'args':['--disable-profilemanager'], 'default': False, 'action': 'store_true', 'help': 'disable the session profile manager window', },
                    {'args':['--display'], 'default': None, 'metavar': '<hostname>:<screennumber>', 'help': 'set the DISPLAY environment variable to <hostname>:<screennumber>', },
                    {'args':['--logon-window-position'], 'default': None, 'metavar': '<x-pos>x<y-pos>', 'help': 'give a custom position for the logon window, use negative values to position relative to right/bottom border', },
-                   {'args':['--published-applications-no-submenus'], 'default': 9, 'metavar': '<number>', 'help': 'the number of published applications that will be rendered without submenus', },
+                   {'args':['--published-applications-no-submenus'], 'default': 10, 'metavar': '<number>', 'help': 'the number of published applications that will be rendered without submenus', },
                  ]
 if _X2GOCLIENT_OS == 'Windows':
     x2go_gui_options.append(
diff --git a/pyhoca/wxgui/frontend.py b/pyhoca/wxgui/frontend.py
index 11fa4ca..e08c85f 100644
--- a/pyhoca/wxgui/frontend.py
+++ b/pyhoca/wxgui/frontend.py
@@ -388,7 +388,14 @@ class PyHocaGUI(wx.App, x2go.X2goClient):
 
                     if session_list[session_name].is_published_applications_provider() and not pubapp_session_resumed:
                         # resume sessions in published applications mode immediately
-                        pubapp_session = self._X2goClient__register_session(profile_name=profile_name, published_applications=True, cmd='PUBLISHED', session_type='published', session_name=session_name, return_object=True)
+                        pubapp_session = self._X2goClient__register_session(profile_name=profile_name,
+                                                                            published_applications=True,
+                                                                            cmd='PUBLISHED',
+                                                                            session_type='published',
+                                                                            session_name=session_name,
+                                                                            published_applications_no_submenus=self.args.published_applications_no_submenus,
+                                                                            return_object=True
+                                                                           )
                         pubapp_session.resume()
                         pubapp_session_resumed = True
                     elif session_list[session_name].is_published_applications_provider() and pubapp_session_resumed:
@@ -397,7 +404,13 @@ class PyHocaGUI(wx.App, x2go.X2goClient):
 
                 if not pubapp_session_resumed:
 
-                    pubapp_session = self._X2goClient__register_session(profile_name=profile_name, published_applications=True, cmd='PUBLISHED', session_type='published', return_object=True)
+                    pubapp_session = self._X2goClient__register_session(profile_name=profile_name,
+                                                                        published_applications=True,
+                                                                        cmd='PUBLISHED',
+                                                                        session_type='published',
+                                                                        published_applications_no_submenus=self.args.published_applications_no_submenus,
+                                                                        return_object=True
+                                                                       )
                     pubapp_session.start()
                     pubapp_session_started = True
 


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