diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-04-08 06:02:24 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-04-08 06:02:24 +0000 |
commit | 014fe46a53d8aa387b3f9f145b8b0b0982f06aa9 (patch) | |
tree | ec36e8be3bb081229084483757190f7177fc43de /h-client/hclient.py | |
parent | efe7068c82e2ab60b3735645a65730b25070f23a (diff) |
h-client:improved errors handling
Diffstat (limited to 'h-client/hclient.py')
-rw-r--r-- | h-client/hclient.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/h-client/hclient.py b/h-client/hclient.py index f042076..d6141c6 100644 --- a/h-client/hclient.py +++ b/h-client/hclient.py @@ -218,7 +218,7 @@ class hclient: def submit(self,widget): self.applyChanges(None) - if self.client.isLogged(): + if self.client.isLogged() == True: result = self.client.submit(self.currentDeviceCode) self.printErrors() else: @@ -432,11 +432,11 @@ class hclient: #check if the user is logged #hide or show the login/logout buttons def updateStatus(self): - if self.client.isLogged(): + if self.client.isLogged() == True: self.loginButton.hide() self.logoutButton.show() info = self.client.getUserInfo() - if info != False: + if info == True: self.statusLabel.set_markup("<i>hello</i> <b>"+info['username']+"</b>, <i>you are logged in</i>") if self.currentDeviceCode != None: |