Rename MpdHandler to MpdFrontend

This commit is contained in:
Stein Magnus Jodal 2010-03-20 02:36:18 +01:00
parent 97449f7d43
commit da441b36b3
5 changed files with 16 additions and 16 deletions

8
docs/api/mpd.rst Normal file
View File

@ -0,0 +1,8 @@
************************************************
:mod:`mopidy.mpd` -- MPD protocol implementation
************************************************
.. automodule:: mopidy.mpd.frontend
:synopsis: Our implementation of the MPD protocol.
:members:
:undoc-members:

View File

@ -1,8 +0,0 @@
********************************************************
:mod:`mopidy.mpd.handler` -- MPD protocol implementation
********************************************************
.. automodule:: mopidy.mpd.handler
:synopsis: Our implementation of the MPD protocol.
:members:
:undoc-members:

View File

@ -27,16 +27,16 @@ not Mopidy. The red nodes lives in the ``main`` process (running an
"CoreProcess" [ color="blue" ]
"DespotifyBackend" [ color="blue" ]
"AlsaMixer" [ color="blue" ]
"MpdHandler" [ color="blue" ]
"MpdFrontend" [ color="blue" ]
"MpdServer" [ color="red" ]
"MpdSession" [ color="red" ]
"__main__" -> "CoreProcess" [ label="create" ]
"__main__" -> "MpdServer" [ label="create" ]
"CoreProcess" -> "DespotifyBackend" [ label="create" ]
"CoreProcess" -> "MpdHandler" [ label="create" ]
"CoreProcess" -> "MpdFrontend" [ label="create" ]
"MpdServer" -> "MpdSession" [ label="create one per client" ]
"MpdSession" -> "MpdHandler" [ label="pass MPD requests to" ]
"MpdHandler" -> "DespotifyBackend" [ label="use backend API" ]
"MpdSession" -> "MpdFrontend" [ label="pass MPD requests to" ]
"MpdFrontend" -> "DespotifyBackend" [ label="use backend API" ]
"DespotifyBackend" -> "AlsaMixer" [ label="create and use mixer API" ]
"DespotifyBackend" -> "spytify" [ label="use Python wrapper" ]
"spytify" -> "despotify" [ label="use C library" ]

View File

@ -17,7 +17,7 @@ import sys
from mopidy.mpd import MpdAckError, MpdNotImplemented
logger = logging.getLogger('mpd.handler')
logger = logging.getLogger('mopidy.mpd.frontend')
_request_handlers = {}
@ -41,7 +41,7 @@ def flatten(the_list):
result.append(element)
return result
class MpdHandler(object):
class MpdFrontend(object):
def __init__(self, backend=None):
self.backend = backend
self.command_list = False

View File

@ -27,8 +27,8 @@ CONSOLE_LOG_FORMAT = u'%(levelname)-8s %(asctime)s [%(process)d:%(threadName)s]
#: Protocol frontend to use. Default::
#:
#: FRONTEND = u'mopidy.mpd.handler.MpdHandler'
FRONTEND = u'mopidy.mpd.handler.MpdHandler'
#: FRONTEND = u'mopidy.mpd.frontend.MpdFrontend'
FRONTEND = u'mopidy.mpd.frontend.MpdFrontend'
#: Sound mixer to use. See :mod:`mopidy.mixers` for all available mixers.
#: