mpd: Fix review comments for commands blacklist

This commit is contained in:
Thomas Adamcik 2015-02-18 20:57:22 +01:00
parent e4ba4b3e5f
commit 52814715b4
4 changed files with 4 additions and 4 deletions

View File

@ -85,7 +85,7 @@ v0.20.0 (UNRELEASED)
:issue:`934`, PR: :issue:`968`) :issue:`934`, PR: :issue:`968`)
- Add support for blacklisting MPD commands. This is used to prevent clients - Add support for blacklisting MPD commands. This is used to prevent clients
from using `listall` and `listallinfo` which recursively lookup the entire from using ``listall`` and ``listallinfo`` which recursively lookup the entire
"database". If you insist on using a client that needs these commands change "database". If you insist on using a client that needs these commands change
:confval:`mpd/command_blacklist`. :confval:`mpd/command_blacklist`.

View File

@ -103,6 +103,6 @@ See :ref:`config` for general help on configuring Mopidy.
.. confval:: mpd/command_blacklist .. confval:: mpd/command_blacklist
List of MPD commands which are disabled by the server. By default this List of MPD commands which are disabled by the server. By default this
setting blacklists `listall` and `listallinfo`. These commands don't fit setting blacklists ``listall`` and ``listallinfo``. These commands don't
well with many of Mopidy's backends and are better left disabled unless fit well with many of Mopidy's backends and are better left disabled unless
you know what you are doing. you know what you are doing.

View File

@ -90,6 +90,7 @@ class MpdNotImplemented(MpdAckError):
class MpdDisabled(MpdAckError): class MpdDisabled(MpdAckError):
# NOTE: this is a custom error for mopidy that does not exists in MPD.
error_code = 0 error_code = 0
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):

View File

@ -5,7 +5,6 @@ import warnings
def _is_pykka_proxy_creation(): def _is_pykka_proxy_creation():
return False
stack = inspect.stack() stack = inspect.stack()
try: try:
calling_frame = stack[3] calling_frame = stack[3]