From dec20c387a699bbd33b76b8d35716f83a4910744 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Fri, 18 Mar 2011 23:37:20 +0000 Subject: started GUI programming --- h-client/hlibrary.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'h-client/hlibrary.py') 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} -- cgit v1.2.3