Mercurial > piecrust2
diff piecrust/serving/middlewares.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 | f070a4fc033c |
children | 8d5b8a3dca02 |
line wrap: on
line diff
--- a/piecrust/serving/middlewares.py Wed Sep 27 19:07:55 2017 -0700 +++ b/piecrust/serving/middlewares.py Fri Sep 29 08:42:38 2017 -0700 @@ -12,7 +12,7 @@ make_wrapped_file_response, get_requested_page, get_app_for_server) -class StaticResourcesMiddleware(object): +class PieCrustStaticResourcesMiddleware(object): """ WSGI middleware that serves static files from the `resources/server` directory in the PieCrust package. """ @@ -38,7 +38,8 @@ class PieCrustDebugMiddleware(object): - """ WSGI middleware that handles debugging of PieCrust stuff. + """ WSGI middleware that handles debugging of PieCrust stuff, and runs + the asset pipeline in an SSE thread. """ def __init__(self, app, appfactory, run_sse_check=None):