The branch, build-main has been updated
via d79176f0865a1b9a66bb90e1ad33f4c47dc6ba75 (commit)
from 8962ee55af016895cd725ecf59245c3020b3eed8 (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:
x2gobroker/…
[View More]config.py | 12 ++++++------
x2gobroker/tests/runalltests.py | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
The diff of changes is:
diff --git a/x2gobroker/config.py b/x2gobroker/config.py
index c441a12..962b33c 100644
--- a/x2gobroker/config.py
+++ b/x2gobroker/config.py
@@ -43,7 +43,7 @@ class X2GoBrokerConfigFile(object):
Class for processing a ini-file like configuration file.
If entries are omitted in such a config file, they are filled with
- default values (as hard-coded in Python X2goBroker), so the resulting objects
+ default values (as hard-coded in Python X2goBroker), so the resulting objects
always contain the same fields.
The default values are also used to define a data type for each configuration
@@ -127,7 +127,7 @@ class X2GoBrokerConfigFile(object):
Stores a value for a given section and key.
This methods affects a ConfigParser object held in
- RAM. No configuration file is affected by this
+ RAM. No configuration file is affected by this
method. To write the configuration to disk use
the L{write()} method.
@@ -150,9 +150,9 @@ class X2GoBrokerConfigFile(object):
def _fill_defaults(self):
"""\
- Fills a C{ConfigParser} object with the default config file
- values as pre-defined in Python X2GoBroker or. This ConfigParser
- object is held in RAM. No configuration file is affected by this
+ Fills a C{ConfigParser} object with the default config file
+ values as pre-defined in Python X2GoBroker or. This ConfigParser
+ object is held in RAM. No configuration file is affected by this
method.
"""
@@ -205,7 +205,7 @@ class X2GoBrokerConfigFile(object):
@param key: the ini file key in the given section
@type key: C{str}
- @return: a Python variable type
+ @return: a Python variable type
@rtype: class
"""
diff --git a/x2gobroker/tests/runalltests.py b/x2gobroker/tests/runalltests.py
index badc6cc..f0156db 100644
--- a/x2gobroker/tests/runalltests.py
+++ b/x2gobroker/tests/runalltests.py
@@ -18,8 +18,8 @@
# Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
-"""\
-This file is a default test runner as found in ZOPE/Plone products. It works
+"""
+This file is a default test runner as found in ZOPE/Plone products. It works
fine for any kind of Python unit testing---as we do here for Python X2GoBroker.
"""
hooks/post-receive
--
x2gobroker.git (HTTP(S) Session broker for X2Go)
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 "x2gobroker.git" (HTTP(S) Session broker for X2Go).
[View Less]
The branch, build-main has been updated
via 1652fda04d5ead18a5f891366b0d8aa47f90aebe (commit)
from 2636bc9f7f5a7497712338de870bc3458a7437c5 (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/…
[View More]x2gobroker-daemon.default | 2 +-
debian/x2gobroker-daemon.init | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
The diff of changes is:
diff --git a/debian/x2gobroker-daemon.default b/debian/x2gobroker-daemon.default
index 19130fa..0165e17 100644
--- a/debian/x2gobroker-daemon.default
+++ b/debian/x2gobroker-daemon.default
@@ -13,7 +13,7 @@ START_DAEMON=true
#X2GOBROKER_CONFIG=/etc/x2go/x2gobroker.conf
# path to the X2Go Session Broker's session profiles file (when using the inifile backend)
-#X2GOBROKER_SESSIONPROFILES=/etc/x2go/x2gobroker-sessionprofiles.conf
+#X2GOBROKER_SESSIONPROFILES=/etc/x2go/broker/x2gobroker-sessionprofiles.conf
# path to the X2Go Session Broker's agent command
#X2GOBROKER_AGENT_CMD=/usr/lib/x2go/x2gobroker-agent
diff --git a/debian/x2gobroker-daemon.init b/debian/x2gobroker-daemon.init
index 8772320..3dda287 100644
--- a/debian/x2gobroker-daemon.init
+++ b/debian/x2gobroker-daemon.init
@@ -29,7 +29,7 @@ START_DAEMON=false
DAEMON_BIND_ADDRESS=127.0.0.1:8080
X2GOBROKER_DEFAULT_BACKEND="zeroconf"
X2GOBROKER_CONFIG="/etc/x2go/x2gobroker.conf"
-X2GOBROKER_SESSIONPROFILES="/etc/x2go/x2gobroker-sessionprofiles.conf"
+X2GOBROKER_SESSIONPROFILES="/etc/x2go/broker/x2gobroker-sessionprofiles.conf"
X2GOBROKER_AGENT_CMD="/usr/lib/x2go/x2gobroker-agent"
test -f $DEBIANCONFIG && . $DEBIANCONFIG
hooks/post-receive
--
x2gobroker.git (HTTP(S) Session broker for X2Go)
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 "x2gobroker.git" (HTTP(S) Session broker for X2Go).
[View Less]
The branch, build-main has been updated
via 8962ee55af016895cd725ecf59245c3020b3eed8 (commit)
from 8e3bdb8e8b0014ce0d0d4d81e763c31bc0656011 (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:
x2gobroker/…
[View More]tests/runalltests.py | 2 +-
x2gobroker/tests/test_broker_base.py | 2 +-
x2gobroker/tests/test_broker_inifile.py | 2 +-
x2gobroker/tests/test_broker_zeroconf.py | 2 +-
x2gobroker/tests/test_web_plain_base.py | 2 +-
x2gobroker/tests/test_web_plain_zeroconf.py | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
The diff of changes is:
diff --git a/x2gobroker/tests/runalltests.py b/x2gobroker/tests/runalltests.py
index d2ead75..badc6cc 100644
--- a/x2gobroker/tests/runalltests.py
+++ b/x2gobroker/tests/runalltests.py
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2010 by Mike Gabriel <mike.gabriel(a)das-netzwerkteam.de>
-#
+#
# X2Go Session Broker is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
diff --git a/x2gobroker/tests/test_broker_base.py b/x2gobroker/tests/test_broker_base.py
index 5356e1f..9abd1cc 100644
--- a/x2gobroker/tests/test_broker_base.py
+++ b/x2gobroker/tests/test_broker_base.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2012 by Mike Gabriel <mike.gabriel(a)das-netzwerkteam.de>
-#
+#
# X2Go Session Broker is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
diff --git a/x2gobroker/tests/test_broker_inifile.py b/x2gobroker/tests/test_broker_inifile.py
index dda93b1..acfb65f 100644
--- a/x2gobroker/tests/test_broker_inifile.py
+++ b/x2gobroker/tests/test_broker_inifile.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2012 by Mike Gabriel <mike.gabriel(a)das-netzwerkteam.de>
-#
+#
# X2Go Session Broker is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
diff --git a/x2gobroker/tests/test_broker_zeroconf.py b/x2gobroker/tests/test_broker_zeroconf.py
index 5f0832a..b417acf 100644
--- a/x2gobroker/tests/test_broker_zeroconf.py
+++ b/x2gobroker/tests/test_broker_zeroconf.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2012 by Mike Gabriel <mike.gabriel(a)das-netzwerkteam.de>
-#
+#
# X2Go Session Broker is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
diff --git a/x2gobroker/tests/test_web_plain_base.py b/x2gobroker/tests/test_web_plain_base.py
index 613ab8c..fd5019c 100644
--- a/x2gobroker/tests/test_web_plain_base.py
+++ b/x2gobroker/tests/test_web_plain_base.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2012 by Mike Gabriel <mike.gabriel(a)das-netzwerkteam.de>
-#
+#
# X2Go Session Broker is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
diff --git a/x2gobroker/tests/test_web_plain_zeroconf.py b/x2gobroker/tests/test_web_plain_zeroconf.py
index 3bc09c9..53fe01e 100644
--- a/x2gobroker/tests/test_web_plain_zeroconf.py
+++ b/x2gobroker/tests/test_web_plain_zeroconf.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2012 by Mike Gabriel <mike.gabriel(a)das-netzwerkteam.de>
-#
+#
# X2Go Session Broker is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
hooks/post-receive
--
x2gobroker.git (HTTP(S) Session broker for X2Go)
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 "x2gobroker.git" (HTTP(S) Session broker for X2Go).
[View Less]
The branch, build-main has been updated
via 96019c8aaf5c5cf2d6587314232411b523dc73fd (commit)
from 83c2ca4146e9596397bd8da95d3acf369c18b4a2 (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:
x2gobroker/…
[View More]config.py | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
The diff of changes is:
diff --git a/x2gobroker/config.py b/x2gobroker/config.py
index 90adbf8..c441a12 100644
--- a/x2gobroker/config.py
+++ b/x2gobroker/config.py
@@ -52,10 +52,10 @@ class X2GoBrokerConfigFile(object):
"""
defaultValues = {
- 'none': {
- 'none': 'empty',
- },
- }
+ 'DEFAULT': {
+ 'none': 'empty',
+ },
+ }
write_user_config = False
user_config_file = None
@@ -77,10 +77,10 @@ class X2GoBrokerConfigFile(object):
if x2gobroker.utils._checkConfigFileDefaults(defaults):
self.defaultValues = defaults
- # we purposefully do not inherit the ConfigParser class
+ # we purposefully do not inherit the C{ConfigParser} class
# here as we do not want to run into name conflicts between
# X2GoBroker config file options and method / property names in
- # SafeConfigParser... This is a pre-cautious approach...
+ # C{ConfigParser}... This is a pre-cautious approach...
self.iniConfig = ConfigParser.ConfigParser(self.defaultValues)
self.iniConfig.optionxform = str
@@ -126,7 +126,7 @@ class X2GoBrokerConfigFile(object):
"""\
Stores a value for a given section and key.
- This methods affects a SafeConfigParser object held in
+ This methods affects a ConfigParser object held in
RAM. No configuration file is affected by this
method. To write the configuration to disk use
the L{write()} method.
@@ -150,17 +150,17 @@ class X2GoBrokerConfigFile(object):
def _fill_defaults(self):
"""\
- Fills a C{SafeConfigParser} object with the default config file
- values as pre-defined in Python X2GoBroker or. This SafeConfigParser
+ Fills a C{ConfigParser} object with the default config file
+ values as pre-defined in Python X2GoBroker or. This ConfigParser
object is held in RAM. No configuration file is affected by this
method.
"""
- for section, sectionvalue in [ (key, value) for (key, value) in self.defaultValues.items() if key.upper() != 'DEFAULT' ]:
- for key, value in sectionvalue.items():
+ for section, sectiondict in self.defaultValues.items():
+ if section != 'DEFAULT' and not self.iniConfig.has_section(section):
+ self.iniConfig.add_section(section)
+ for key, value in sectiondict.items():
if self.iniConfig.has_option(section, key): continue
- if not self.iniConfig.has_section(section):
- self.iniConfig.add_section(section)
self._storeValue(section, key, value)
def update_value(self, section, key, value):
@@ -183,7 +183,7 @@ class X2GoBrokerConfigFile(object):
def write(self):
"""\
- Write the ini file modifications (SafeConfigParser object) from RAM to disk.
+ Write the ini file modifications (ConfigParser object) from RAM to disk.
For writing the first of the C{config_files} specified on instance construction
that is writable will be used.
hooks/post-receive
--
x2gobroker.git (HTTP(S) Session broker for X2Go)
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 "x2gobroker.git" (HTTP(S) Session broker for X2Go).
[View Less]
The branch, build-main has been updated
via 6dfb975d5022d3124329fb01e6cf2bb00be7228b (commit)
from 23151c4e7770fed744369f21d9f3a3979ba0f18b (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:
x2gobroker/…
[View More]defaults.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
The diff of changes is:
diff --git a/x2gobroker/defaults.py b/x2gobroker/defaults.py
index 0769f8e..f2b67e4 100644
--- a/x2gobroker/defaults.py
+++ b/x2gobroker/defaults.py
@@ -91,7 +91,7 @@ X2GOBROKER_CONFIG_DEFAULTS = {
# defaults for X2Go Sessino Broker session profiles file
X2GOBROKER_SESSIONPROFILE_DEFAULTS = {
- 'DEFAULT': {
+ u'DEFAULT': {
u'defsndport': True,
u'useiconv': False,
u'iconvfrom': u'UTF-8',
hooks/post-receive
--
x2gobroker.git (HTTP(S) Session broker for X2Go)
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 "x2gobroker.git" (HTTP(S) Session broker for X2Go).
[View Less]
The branch, build-main has been updated
via efadd7bc9a73ae99a0a537ec308a074666a085a0 (commit)
from 96019c8aaf5c5cf2d6587314232411b523dc73fd (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:
x2gobroker/…
[View More]brokers/base_broker.py | 60 ++++++++++++++++++++-----------------
1 file changed, 33 insertions(+), 27 deletions(-)
The diff of changes is:
diff --git a/x2gobroker/brokers/base_broker.py b/x2gobroker/brokers/base_broker.py
index 4ab60c8..caaf85c 100644
--- a/x2gobroker/brokers/base_broker.py
+++ b/x2gobroker/brokers/base_broker.py
@@ -196,15 +196,14 @@ class X2GoBroker(object):
_acls = self.get_acl_defaults()
_acls.update(acls)
-
_order = {}
- _order['users'] = _order['groups'] = _order['clients'] = _acls['acl-any-order']
+ _order[u'users'] = _order[u'groups'] = _order[u'clients'] = _acls[u'acl-any-order']
- try: _order['users'] = _acls['acl-users-order']
+ try: _order[u'users'] = _acls[u'acl-users-order']
except KeyError: pass
- try: _order['groups'] = _acls['acl-groups-order']
+ try: _order[u'groups'] = _acls[u'acl-groups-order']
except KeyError: pass
- try: _order['clients'] = _acls['acl-clients-order']
+ try: _order[u'clients'] = _acls[u'acl-clients-order']
except KeyError: pass
# to pass an ACL test, all three keys in the dict below have to be set to True
@@ -225,62 +224,62 @@ class X2GoBroker(object):
### clients access is granted first, if that fails then we return False here...
# FIXME: provide code for client based access control
- if not _grant_availability['by_client']:
+ if not _grant_availability[u'by_client']:
return False
### no user/group ACLs are in use, allow access then...
- if len(_acls['acl-users-allow'] + _acls['acl-users-deny'] + _acls['acl-groups-allow'] + _acls['acl-groups-deny']) == 0:
+ if len(_acls[u'acl-users-allow'] + _acls[u'acl-users-deny'] + _acls[u'acl-groups-allow'] + _acls[u'acl-groups-deny']) == 0:
return True
### CHECKING on a per-user basis...
_allow_user_override = False
_explicitly_deny_user = False
- if len( _acls['acl-users-allow'] + _acls['acl-users-deny'] ) > 0:
+ if len( _acls[u'acl-users-allow'] + _acls[u'acl-users-deny'] ) > 0:
_allow_user = False
_deny_user = False
- if username in _acls['acl-users-allow'] or 'ALL' in _acls['acl-users-allow']:
+ if username in _acls[u'acl-users-allow'] or u'ALL' in _acls[u'acl-users-allow']:
_allow_user_override = True
_allow_user = True
- if username in _acls['acl-users-deny']:
+ if username in _acls[u'acl-users-deny']:
_explicitly_deny_user = True
- if _explicitly_deny_user or ('ALL' in _acls['acl-users-deny']):
+ if _explicitly_deny_user or (u'ALL' in _acls[u'acl-users-deny']):
_deny_user = True
- if _order['users'] == 'allow-deny':
- _grant_availability['by_user'] = (_allow_user or _deny_user) and (_allow_user and (not _deny_user))
+ if _order[u'users'] == 'allow-deny':
+ _grant_availability[u'by_user'] = (_allow_user or _deny_user) and (_allow_user and (not _deny_user))
else:
- _grant_availability['by_user'] = (_allow_user or _deny_user) and ((not _deny_user) or _allow_user)
+ _grant_availability[u'by_user'] = (_allow_user or _deny_user) and ((not _deny_user) or _allow_user)
# if a user has been granted access directly, then the corresponding session profile(s)
# will be provided to him/her, it does not matter what the group acl will have to say to this...
- if _grant_availability['by_user']:
+ if _grant_availability[u'by_user']:
return True
### CHECKING on a per-group basis...
- if len(_acls['acl-groups-allow'] + _acls['acl-groups-deny']) > 0:
+ if len(_acls[u'acl-groups-allow'] + _acls[u'acl-groups-deny']) > 0:
_allow_group = False
_deny_group = False
- _user_groups = ['ALL'] + self.get_user_groups(username, primary_groups=True)
+ _user_groups = [u'ALL'] + self.get_user_groups(username, primary_groups=True)
- _allow_group = bool(len(set(_user_groups).intersection( set(_acls['acl-groups-allow']) )))
- _deny_group = bool(len(set(_user_groups).intersection( set(_acls['acl-groups-deny']) )))
+ _allow_group = bool(len(set(_user_groups).intersection( set(_acls[u'acl-groups-allow']) )))
+ _deny_group = bool(len(set(_user_groups).intersection( set(_acls[u'acl-groups-deny']) )))
- if _order['groups'] == 'allow-deny':
- _grant_availability['by_group'] = (_allow_group or _deny_group) and (_allow_group and (not _deny_group))
+ if _order[u'groups'] == 'allow-deny':
+ _grant_availability[u'by_group'] = (_allow_group or _deny_group) and (_allow_group and (not _deny_group))
else:
- _grant_availability['by_group'] = (_allow_group or _deny_group) and (not _deny_group) or _allow_group
+ _grant_availability[u'by_group'] = (_allow_group or _deny_group) and (not _deny_group) or _allow_group
# if a group has been granted access, with one exception: if the thread model for users is
# allow-deny, then we presume that the acl-users-deny entry has precendence over
# acl-groups-allow/acl-groups-deny.
- if (_grant_availability['by_group'] and not _explicitly_deny_user) or _allow_user_override:
+ if (_grant_availability[u'by_group'] and not _explicitly_deny_user) or _allow_user_override:
return True
return False
@@ -583,18 +582,25 @@ class X2GoBroker(object):
return list_of_profiles
- def select_profile(self, profile_name='DEFAULT'):
+ def select_session(self, profile_id):
"""\
Start/resume a session by selecting a profile name offered by the X2Go client.
The X2Go server that the session is launched on is selected automatically by the X2Go session
broker.
- @param profile_name: a dictionary object containing information on a selected session profile
- @type profile_name: C{dict}
+ @param profile_id: the selected profile ID. This matches one of the dictionary keys offered by the C{list_profiles} method
+ @type profile_id: C{dict}
"""
- return {}
+ profile = self.get_profile(profile_id)
+
+ selected_session = {
+ 'server': profile[u'host'],
+ 'port': profile[u'sshport'],
+ }
+
+ return selected_session
def change_password(self, new='', old=''):
"""\
hooks/post-receive
--
x2gobroker.git (HTTP(S) Session broker for X2Go)
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 "x2gobroker.git" (HTTP(S) Session broker for X2Go).
[View Less]
The branch, build-main has been updated
via 23151c4e7770fed744369f21d9f3a3979ba0f18b (commit)
from efadd7bc9a73ae99a0a537ec308a074666a085a0 (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:
x2gobroker/…
[View More]brokers/zeroconf_broker.py | 5 +++--
x2gobroker/tests/test_broker_zeroconf.py | 7 ++++---
2 files changed, 7 insertions(+), 5 deletions(-)
The diff of changes is:
diff --git a/x2gobroker/brokers/zeroconf_broker.py b/x2gobroker/brokers/zeroconf_broker.py
index 2d513b3..c2d05e7 100644
--- a/x2gobroker/brokers/zeroconf_broker.py
+++ b/x2gobroker/brokers/zeroconf_broker.py
@@ -76,9 +76,10 @@ class X2GoBroker(base.X2GoBroker):
}
return list_of_profiles
- def select_profile(self, profile_name):
+ def select_session(self, profile_name):
selectprofile_output = {
- 'server': 'localhost:22',
+ 'server': 'localhost',
+ 'port': 22,
}
return selectprofile_output
diff --git a/x2gobroker/tests/test_broker_zeroconf.py b/x2gobroker/tests/test_broker_zeroconf.py
index 1c08d6c..5f0832a 100644
--- a/x2gobroker/tests/test_broker_zeroconf.py
+++ b/x2gobroker/tests/test_broker_zeroconf.py
@@ -77,12 +77,13 @@ class TestX2GoBrokerBackendZeroconf(unittest.TestCase):
### TEST: select_profile() method
- def test_profileselection(self):
+ def test_sessionselection(self):
_output = {
- 'server': 'localhost:22',
+ 'server': 'localhost',
+ 'port': 22,
}
zeroconf_backend = x2gobroker.brokers.zeroconf_broker.X2GoBroker()
- self.assertEqual(zeroconf_backend.select_profile('profile_bar'), _output)
+ self.assertEqual(zeroconf_backend.select_session('profile_bar'), _output)
def test_suite():
hooks/post-receive
--
x2gobroker.git (HTTP(S) Session broker for X2Go)
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 "x2gobroker.git" (HTTP(S) Session broker for X2Go).
[View Less]
The branch, build-main has been updated
via 5b273ab1ecaf19c40ce1ea3de05290d5a7fc46cf (commit)
from 6dfb975d5022d3124329fb01e6cf2bb00be7228b (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:
x2gobroker/…
[View More]web/plain.py | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
The diff of changes is:
diff --git a/x2gobroker/web/plain.py b/x2gobroker/web/plain.py
index cc93fc9..36afe63 100644
--- a/x2gobroker/web/plain.py
+++ b/x2gobroker/web/plain.py
@@ -69,8 +69,8 @@ class X2GoBrokerWebPlain:
except AttributeError: authid = ''
try: task = data.task
except AttributeError: task = ''
- try: profile_name = data.sid
- except AttributeError: profile_name = ''
+ try: profile_id = data.sid
+ except AttributeError: profile_id = ''
try: new_password = data.newpass
except AttributeError: new_password = ''
@@ -128,12 +128,15 @@ class X2GoBrokerWebPlain:
elif task == 'selectsession':
- if profile_name:
+ if profile_id:
- profile_info = broker_backend.select_profile(profile_name=profile_name)
+ profile_info = broker_backend.select_session(profile_id=profile_id)
if profile_info.has_key('server'):
output += "SERVER:"
- output += profile_info['server'] + "\n"
+ output += profile_info['server']
+ if profile_info.has_key('port'):
+ output += ":{port}".format(port=profile_info['port'])
+ output += "\n"
if profile_info.has_key('authentication_key'):
output += ""
if profile_info.has_key('session_info'):
hooks/post-receive
--
x2gobroker.git (HTTP(S) Session broker for X2Go)
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 "x2gobroker.git" (HTTP(S) Session broker for X2Go).
[View Less]