Mercurial > libervia-web
comparison src/browser/sat_browser/file_tools.py @ 494:5d8632a7bfde
browser_side: refactorisation of menus and LiberviaWidget's header
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 15 Jul 2014 18:43:55 +0200 |
parents | bbdc5357dc00 |
children | 6d3142b782c3 |
comparison
equal
deleted
inserted
replaced
493:636b6c477a87 | 494:5d8632a7bfde |
---|---|
149 Window.alert(self.texts['callback']) | 149 Window.alert(self.texts['callback']) |
150 self.close_cb() | 150 self.close_cb() |
151 else: | 151 else: |
152 Window.alert(_('Submit error: %s' % result)) | 152 Window.alert(_('Submit error: %s' % result)) |
153 self.upload_btn.setEnabled(True) | 153 self.upload_btn.setEnabled(True) |
154 | |
155 | |
156 class AvatarUpload(FileUploadPanel): | |
157 def __init__(self): | |
158 texts = {'ok_button': 'Upload avatar', | |
159 'body': 'Please select an image to show as your avatar...<br>Your picture must be a square and will be resized to 64x64 pixels if necessary.', | |
160 'errback': "Can't open image... did you actually submit an image?", | |
161 'body_errback': 'Please select another image file.', | |
162 'callback': "Your new profile picture has been set!"} | |
163 FileUploadPanel.__init__(self, 'upload_avatar', 'avatar_path', 2, texts) |