From 0eaee6b70d9d038a5a900cc3462fa95b8667e4ae Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 7 Feb 2010 23:10:25 +0100 Subject: [PATCH] Reorder classes --- mopidy/backends/__init__.py | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/mopidy/backends/__init__.py b/mopidy/backends/__init__.py index 2cb4c692..41cc4289 100644 --- a/mopidy/backends/__init__.py +++ b/mopidy/backends/__init__.py @@ -68,6 +68,23 @@ class BaseCurrentPlaylistController(object): self.playlist = self.playlist.with_(tracks=before+shuffled+after) +class BaseLibraryController(object): + def __init__(self, backend): + self.backend = backend + + def find_exact(self, type, query): + raise NotImplementedError + + def lookup(self, uri): + raise NotImplementedError + + def refresh(self, uri=None): + raise NotImplementedError + + def search(self, type, query): + raise NotImplementedError + + class BasePlaybackController(object): PAUSED = u'paused' PLAYING = u'playing' @@ -189,23 +206,6 @@ class BasePlaybackController(object): raise NotImplementedError -class BaseLibraryController(object): - def __init__(self, backend): - self.backend = backend - - def find_exact(self, type, query): - raise NotImplementedError - - def lookup(self, uri): - raise NotImplementedError - - def refresh(self, uri=None): - raise NotImplementedError - - def search(self, type, query): - raise NotImplementedError - - class BaseStoredPlaylistController(object): def __init__(self, backend): self.backend = backend