Mercurial > piecrust2
diff piecrust/serving/server.py @ 917:33a89139c284
serve: Add `--admin` option to run the administration panel.
- Removed the `admin run` command.
- Cleaned up middlewares a bit.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 29 Sep 2017 08:42:38 -0700 |
parents | fddaf43424e2 |
children | b447c24bc8d4 |
line wrap: on
line diff
--- a/piecrust/serving/server.py Wed Sep 27 19:07:55 2017 -0700 +++ b/piecrust/serving/server.py Fri Sep 29 08:42:38 2017 -0700 @@ -21,11 +21,11 @@ logger = logging.getLogger(__name__) -class WsgiServer(object): +class PieCrustServer(object): """ A WSGI application that serves a PieCrust website. """ def __init__(self, appfactory, **kwargs): - self.server = Server(appfactory, **kwargs) + self.server = _ServerImpl(appfactory, **kwargs) def __call__(self, environ, start_response): return self.server._run_request(environ, start_response) @@ -52,7 +52,7 @@ return desc -class Server(object): +class _ServerImpl(object): """ The PieCrust server. """ def __init__(self, appfactory,