Add docstring to destroy calls
This commit is contained in:
parent
7bd576fcc0
commit
2f34d76038
@ -42,6 +42,11 @@ class BaseBackend(object):
|
|||||||
uri_handlers = []
|
uri_handlers = []
|
||||||
|
|
||||||
def destroy(self):
|
def destroy(self):
|
||||||
|
'''
|
||||||
|
Call destroy on all sub-components in backend so that they can cleanup
|
||||||
|
after themselves.
|
||||||
|
'''
|
||||||
|
|
||||||
if self.current_playlist:
|
if self.current_playlist:
|
||||||
self.current_playlist.destroy()
|
self.current_playlist.destroy()
|
||||||
|
|
||||||
@ -218,6 +223,7 @@ class BaseCurrentPlaylistController(object):
|
|||||||
self.playlist = self.playlist.with_(tracks=before+shuffled+after)
|
self.playlist = self.playlist.with_(tracks=before+shuffled+after)
|
||||||
|
|
||||||
def destroy(self):
|
def destroy(self):
|
||||||
|
'''Cleanup after component'''
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@ -274,6 +280,7 @@ class BaseLibraryController(object):
|
|||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def destroy(self):
|
def destroy(self):
|
||||||
|
'''Cleanup after component'''
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@ -593,6 +600,7 @@ class BasePlaybackController(object):
|
|||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def destroy(self):
|
def destroy(self):
|
||||||
|
'''Cleanup after component'''
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@ -708,4 +716,5 @@ class BaseStoredPlaylistsController(object):
|
|||||||
return filter(lambda p: query in p.name, self._playlists)
|
return filter(lambda p: query in p.name, self._playlists)
|
||||||
|
|
||||||
def destroy(self):
|
def destroy(self):
|
||||||
|
'''Cleanup after component'''
|
||||||
pass
|
pass
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user