aboutsummaryrefslogtreecommitdiff
path: root/h-client/hlibrary.py
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-03-18 23:37:20 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-03-18 23:37:20 +0000
commitdec20c387a699bbd33b76b8d35716f83a4910744 (patch)
tree4899fd29c2deadd01fb984bd9465f3019921d125 /h-client/hlibrary.py
parent266d4a8b77fca528c16d1089d474010eb15c81a1 (diff)
started GUI programming
Diffstat (limited to 'h-client/hlibrary.py')
-rw-r--r--h-client/hlibrary.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/h-client/hlibrary.py b/h-client/hlibrary.py
index c763a76..e45cfbd 100644
--- a/h-client/hlibrary.py
+++ b/h-client/hlibrary.py
@@ -356,16 +356,16 @@ class Client:
def getUserInfo(self):
self.request.perform('users/info/en')
xmldoc = minidom.parseString(self.request.contents)
- status = modelName = xmldoc.getElementsByTagName("status")[0].childNodes[0].data
+ status = xmldoc.getElementsByTagName("status")[0].childNodes[0].data
username = ''
token = ''
groups = ''
if status == 'logged':
- username = modelName = xmldoc.getElementsByTagName("username")[0].childNodes[0].data
- token = modelName = xmldoc.getElementsByTagName("token")[0].childNodes[0].data
- groups = modelName = xmldoc.getElementsByTagName("groups")[0].childNodes[0].data
+ username = xmldoc.getElementsByTagName("username")[0].childNodes[0].data
+ token = xmldoc.getElementsByTagName("token")[0].childNodes[0].data
+ groups = xmldoc.getElementsByTagName("groups")[0].childNodes[0].data
return {'status':status,'username':username,'token':token,'groups':groups}