From c84a3fc34919ab846a1c5fb0a4cef96def6837ea Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Tue, 20 May 2014 22:13:14 +0200 Subject: [PATCH] http: Include registry name in docs --- mopidy/http/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mopidy/http/__init__.py b/mopidy/http/__init__.py index e7a2ec1c..7689f307 100644 --- a/mopidy/http/__init__.py +++ b/mopidy/http/__init__.py @@ -53,9 +53,9 @@ class Router(object): """ HTTP router interface. - Extensions that wish to add custom routes to HTTP server needs to subclass - this class and have :meth:`~mopidy.ext.Extension.setup` register the class - in the extension registry. + Extensions that wish to extend the HTTP server needs to subclass this class + and have :meth:`~mopidy.ext.Extension.setup` register the class in the + extension registry under the ``http:router`` key. :param config: dict structure of the entire Mopidy configuration """ @@ -71,7 +71,7 @@ class Router(object): self.hostname = config['http']['hostname'] self.port = config['http']['port'] if not self.name: - raise ValueError('Undefined name in %s' % self) + raise ValueError('Undefined router name in %s' % self) def linkify(self): """