comparison src/browser/sat_browser/game_radiocol.py @ 914:0c0551967bdf

server, browser: partial Libervia fix Libervia was broken following the refactorings. This commit partially fixes it : Libervia is starting, avatar, blog and message are working again, but not everything is restablished yet. following things have been fixed/changed: - new dependency: shortuuid - D-Bus bridge is working again - fixed naming in several bridge methods - register method changed to register_signal - fixed Chat widget, which was not working anymore since the refactoring - avatar now use avatarGet. Cache dir is accessible using a session specific uuid, to avoid cache leak (i.e. accessing cache of other profiles) - server: new uuid attribute in session data Browser code is not fully working yet, notably OTR and contact list are not fully fixed.
author Goffi <goffi@goffi.org>
date Sun, 26 Feb 2017 18:32:47 +0100
parents 09ace5cbcb9b
children fd4eae654182
comparison
equal deleted inserted replaced
913:58f611481e6d 914:0c0551967bdf
256 256
257 help_msg = """Accepted file formats: Ogg Vorbis (recommended), MP3.<br /> 257 help_msg = """Accepted file formats: Ogg Vorbis (recommended), MP3.<br />
258 Please do not submit files that are protected by copyright.<br /> 258 Please do not submit files that are protected by copyright.<br />
259 Click <a style="color: red;">here</a> if you need some support :)""" 259 Click <a style="color: red;">here</a> if you need some support :)"""
260 link_cb = lambda: self._parent.host.bridge.joinMUC(self._parent.host.default_muc, self._parent.nick, profile=C.PROF_KEY_NONE, callback=lambda dummy: None, errback=self._parent.host.onJoinMUCFailure) 260 link_cb = lambda: self._parent.host.bridge.joinMUC(self._parent.host.default_muc, self._parent.nick, profile=C.PROF_KEY_NONE, callback=lambda dummy: None, errback=self._parent.host.onJoinMUCFailure)
261 self._parent.printInfo(help_msg, type_='link', link_cb=link_cb) 261 # FIXME: printInfo disabled after refactoring
262 # self._parent.printInfo(help_msg, type_='link', link_cb=link_cb)
262 263
263 def pushNextSong(self, title): 264 def pushNextSong(self, title):
264 """Add a song to the left panel's next songs queue""" 265 """Add a song to the left panel's next songs queue"""
265 next_song = Label(title) 266 next_song = Label(title)
266 next_song.setStyleName("radiocol_next_song") 267 next_song.setStyleName("radiocol_next_song")
299 break 300 break
300 if not preloaded: 301 if not preloaded:
301 log.warning("Can't preload song, we are getting too many songs to preload, we shouldn't have more than %d at once" % self.queue_data[1]) 302 log.warning("Can't preload song, we are getting too many songs to preload, we shouldn't have more than %d at once" % self.queue_data[1])
302 else: 303 else:
303 self.pushNextSong(title) 304 self.pushNextSong(title)
304 self._parent.printInfo(_('%(user)s uploaded %(artist)s - %(title)s') % {'user': sender, 'artist': artist, 'title': title}) 305 # FIXME: printInfo disabled after refactoring
306 # self._parent.printInfo(_('%(user)s uploaded %(artist)s - %(title)s') % {'user': sender, 'artist': artist, 'title': title})
305 307
306 def radiocolPlayHandler(self, filename): 308 def radiocolPlayHandler(self, filename):
307 found = False 309 found = False
308 for player in self.players: 310 for player in self.players:
309 if not found and player.filename == filename: 311 if not found and player.filename == filename: