[X2go-Commits] python-x2go.git - master (branch) updated: 0.1.1.4-57-ga04eec2
X2go dev team
git-admin at x2go.org
Sun Sep 25 23:39:28 CEST 2011
The branch, master has been updated
via a04eec2fc959054572bed038ede4824ac379d11b (commit)
from b2ba91b1c47870a8cc0ac41ec0b3921062cafcba (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 a04eec2fc959054572bed038ede4824ac379d11b
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Sun Sep 25 23:38:56 2011 +0200
provide better __repr__ output for debugging session infos
-----------------------------------------------------------------------
Summary of changes:
x2go/backends/info/_stdout.py | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
The diff of changes is:
diff --git a/x2go/backends/info/_stdout.py b/x2go/backends/info/_stdout.py
index 529a8f3..c492d2d 100644
--- a/x2go/backends/info/_stdout.py
+++ b/x2go/backends/info/_stdout.py
@@ -27,6 +27,11 @@ via server-side STDOUT.
"""
__NAME__ = 'x2goserversessioninfo-pylib'
+
+# modules
+import types
+
+
class X2goServerSessionInfoSTDOUT(object):
"""\
L{X2goServerSessionInfo} is used to store all information
@@ -37,7 +42,11 @@ class X2goServerSessionInfoSTDOUT(object):
def __str__(self):
return self.name
def __repr__(self):
- return "<%s instance: %s>" % (self.__class__, self.name)
+ result = 'X2goServerSessionInfoSTDOUT('
+ for p in dir(self):
+ if '__' in p or not p in self.__dict__ or type(p) is types.InstanceType: continue
+ result += p + '=' + str(self.__dict__[p]) +','
+ return result.strip(',') + ')'
def _parse_x2golistsessions_line(self, x2go_output):
"""\
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