From a22dc9e110c57b8335412f29dbdd8f1a7770dd4e Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Tue, 12 Apr 2011 00:51:08 +0000 Subject: h-client:improved submit process --- h-client/hclient.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'h-client') diff --git a/h-client/hclient.py b/h-client/hclient.py index 2ef8fff..9a22bb2 100644 --- a/h-client/hclient.py +++ b/h-client/hclient.py @@ -227,8 +227,10 @@ class hclient: if self._submitFlag: if self.client.isLogged(): self.applyChanges(None) - self.client.submit(self.currentDeviceCode) - self.synchronize(None) + if self.client.submit(self.currentDeviceCode): + self.synchronize(None) + else: + self.printErrors() self._submitFlag = False @@ -241,14 +243,15 @@ class hclient: self.licenseNoticeWindow.destroy() if self.client.isLogged(): - self.client.submit(self.currentDeviceCode) - self.synchronize(None) + if self.client.submit(self.currentDeviceCode): + self.synchronize(None) + else: + self.printErrors() else: self._submitFlag = True self.openLoginWindow(None) - - self.updateStatus() + #logout to the server def logout(self,widget): -- cgit v1.2.3