[X2Go-Commits] x2gobroker.git - statusflag (branch) updated: 0.0.0.5-9-g5347ab0

X2Go dev team git-admin at x2go.org
Tue Jun 4 21:09:49 CEST 2013


The branch, statusflag has been updated
       via  5347ab0c3c00f99e3f30e9f274f5082c63b94b10 (commit)
      from  94323f6767cc8f3258f03a4160dba4cf6e166d07 (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        |    3 ++-
 x2gobroker/web/plain.py |    2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index f74c242..93164d9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,7 +2,8 @@ x2gobroker (0.0.0.6-0~x2go1) UNRELEASED; urgency=low
 
   [ Mike Gabriel ]
   * New upstream version (0.0.0.6):
-    - Continue development...
+    - Rewrite empty user parameter in session profile. Fill in
+      the UID that has been used for broker authentication.
   * /debian/*.default:
     - Be more explanatory about the X2GOBROKER_DEBUG option and allow
       to enable debug mode for the different services independently.
diff --git a/x2gobroker/web/plain.py b/x2gobroker/web/plain.py
index 07c36b2..f7f0f5f 100644
--- a/x2gobroker/web/plain.py
+++ b/x2gobroker/web/plain.py
@@ -129,6 +129,8 @@ class X2GoBrokerWeb:
                     for profile_id in profile_ids:
                         output += "[{profile_id}]\n".format(profile_id=profile_id)
                         for key in profiles[profile_id].keys():
+                            if key == u'user' and not profiles[profile_id][key]:
+                                profiles[profile_id][key] = username
                             if type(profiles[profile_id][key]) in (types.UnicodeType, types.StringType):
                                 output += "{key}={value}".format(key=key, value=unicode(profiles[profile_id][key]))
                             elif type(profiles[profile_id][key]) in (types.ListType, types.TupleType):


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).




More information about the x2go-commits mailing list