def __OnChangeStatus(self, event): """ Change the status of the song by context menu """ song = viewmgr.Get()._selectedSong if song <> None: # if our status differs, force an update if song._status <> self.__statusMap[event.GetId()]: viewmgr.signalSongStatusChange(song, self.__statusMap[event.GetId()])
def __DoSetSongStatus(self, status): """ Song status must be changed, issued by the browser component which will trigger a change in status """ song = viewmgr.Get()._selectedSong if song: # signal a status change so we can enter a log viewmgr.signalSongStatusChange(song, status)