aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-04-12 00:51:08 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-04-12 00:51:08 +0000
commita22dc9e110c57b8335412f29dbdd8f1a7770dd4e (patch)
treea06ee14f2b08b2a4b55848bef47620b2e53e66a0
parent77320f7918a453892ae4ba0aad411c54867859fc (diff)
h-client:improved submit process
-rw-r--r--h-client/hclient.py15
1 files changed, 9 insertions, 6 deletions
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):