Rename PlaybackController.{end_of_track_callback => on_end_of_track}

This commit is contained in:
Stein Magnus Jodal 2010-08-16 21:28:15 +02:00
parent 4cfbfbb2d2
commit e4421eec1c
3 changed files with 5 additions and 2 deletions

View File

@ -102,6 +102,9 @@ greatly improved MPD client support.
:meth:`mopidy.backends.base.BasePlaybackController.new_playlist_loaded_callback()`
to
:meth:`mopidy.backends.base.BasePlaybackController.on_current_playlist_change()`.
- Rename
:meth:`mopidy.backends.base.BasePlaybackController.end_of_track_callback()`
to :meth:`mopidy.backends.base.BasePlaybackController.on_end_of_track()`.
0.1.0a3 (2010-08-03)

View File

@ -300,7 +300,7 @@ class BasePlaybackController(object):
def _current_wall_time(self):
return int(time.time() * 1000)
def end_of_track_callback(self):
def on_end_of_track(self):
"""
Tell the playback controller that end of track is reached.

View File

@ -68,7 +68,7 @@ class CoreProcess(BaseProcess):
connection = unpickle_connection(message['reply_to'])
connection.send(response)
elif message['command'] == 'end_of_track':
self.backend.playback.end_of_track_callback()
self.backend.playback.on_end_of_track()
elif message['command'] == 'stop_playback':
self.backend.playback.stop()
elif message['command'] == 'set_stored_playlists':