[X2go-Commits] python-x2go.git - release/0.1.1.x (branch) updated: 0.1.1.6-21-ga5ed9d2

X2go dev team git-admin at x2go.org
Sat Sep 24 11:49:35 CEST 2011


The branch, release/0.1.1.x has been updated
       via  a5ed9d2b9cb15374aa0e5205f728fd50efd04b6b (commit)
      from  142e587cb4bfe2b5a506ed20dac04eaba77f258a (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 a5ed9d2b9cb15374aa0e5205f728fd50efd04b6b
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sat Sep 24 11:49:19 2011 +0200

    remove code duplications

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

Summary of changes:
 x2go/backends/terminal/_stdout.py |    9 ++-------
 x2go/session.py                   |    2 +-
 2 files changed, 3 insertions(+), 8 deletions(-)

The diff of changes is:
diff --git a/x2go/backends/terminal/_stdout.py b/x2go/backends/terminal/_stdout.py
index 73a2844..51bee99 100644
--- a/x2go/backends/terminal/_stdout.py
+++ b/x2go/backends/terminal/_stdout.py
@@ -439,17 +439,12 @@ class X2goTerminalSessionSTDOUT(object):
             # tunnel has already been started and might simply need a resume call
             self.reverse_tunnels[self.session_info.name]['snd'][1].resume()
 
-    def is_folder_sharing_available(self):
-        if self.session_info.username in self.control_session._x2go_remote_group('fuse'):
-            return True
-        return False
-
     def start_sshfs(self):
         """\
         Initialize Paramiko/SSH reverse forwarding tunnel for X2go folder sharing.
 
         """
-        if self.is_folder_sharing_available():
+        if self.control_session.is_folder_sharing_available():
             raise x2go_exceptions.X2goUserException('remote user %s is not member of X2go server group fuse' % self.session_info.username)
 
         # start reverse SSH tunnel for sshfs (folder sharing, printing)
@@ -596,7 +591,7 @@ class X2goTerminalSessionSTDOUT(object):
         @rtype: bool
 
         """
-        if self.is_folder_sharing_available():
+        if self.control_session.is_folder_sharing_available():
             raise x2go_exceptions.X2goUserException('remote user %s is not member of X2go server group fuse' % self.session_info.username)
 
         if local_path is None:
diff --git a/x2go/session.py b/x2go/session.py
index 3f39107..ed1e8b5 100644
--- a/x2go/session.py
+++ b/x2go/session.py
@@ -1060,7 +1060,7 @@ class X2goSession(object):
                     self.terminal_session and not self.faulty and self.terminal_session.start_mimebox(mimebox_extensions=self.mimebox_extensions, mimebox_action=self.mimebox_action)
                     self.terminal_session and self.session_environment.update({'X2GO_MIMEBOX': self.terminal_session.get_mimebox_spooldir(), })
 
-                if self._SUPPORTED_FOLDERSHARING and self.allow_share_local_folders and self.share_local_folders and self.terminal_session and not self.faulty and self.is_folder_sharing_available():
+                if self.share_local_folders and self.terminal_session and not self.faulty and self.is_folder_sharing_available():
                     if _control.get_transport().reverse_tunnels[self.terminal_session.get_session_name()]['sshfs'][1] is not None:
                         for _folder in self.share_local_folders:
                             self.share_local_folder(_folder)


hooks/post-receive
-- 
python-x2go.git (Python X2go Client API)

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 "python-x2go.git" (Python X2go Client API).




More information about the x2go-commits mailing list