Mercurial > libervia-web
comparison browser_side/menu.py @ 300:4f221f34bdc7
browser_side (plugins radiocol, xep-0054): handle upload errors
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 17 Dec 2013 19:37:47 +0100 |
parents | 7316a5696366 |
children | 629c99bbd031 |
comparison
equal
deleted
inserted
replaced
299:e4f586fc6101 | 300:4f221f34bdc7 |
---|---|
122 pass | 122 pass |
123 | 123 |
124 def onSubmitComplete(self, event): | 124 def onSubmitComplete(self, event): |
125 result = event.getResults() | 125 result = event.getResults() |
126 if result != "OK": | 126 if result != "OK": |
127 Window.alert('Something went wrong while submitting file') | 127 Window.alert("Can't open image... did you actually submit an image?") |
128 self.close_cb() | 128 self.message.setHTML('Please select another image file') |
129 self.upload_btn.setEnabled(True) | |
130 else: | |
131 Window.alert("Your new profile picture has been set!") | |
132 self.close_cb() | |
129 | 133 |
130 | 134 |
131 class Menu(SimplePanel): | 135 class Menu(SimplePanel): |
132 | 136 |
133 def __init__(self, host): | 137 def __init__(self, host): |