diff piecrust/serving/wrappers.py @ 852:4850f8c21b6e

core: Start of the big refactor for PieCrust 3.0. * Everything is a `ContentSource`, including assets directories. * Most content sources are subclasses of the base file-system source. * A source is processed by a "pipeline", and there are 2 built-in pipelines, one for assets and one for pages. The asset pipeline is vaguely functional, but the page pipeline is completely broken right now. * Rewrite the baking process as just running appropriate pipelines on each content item. This should allow for better parallelization.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 17 May 2017 00:11:48 -0700
parents b91fe30ae7aa
children 1bb0d973dc69
line wrap: on
line diff
--- a/piecrust/serving/wrappers.py	Sat Apr 29 21:42:22 2017 -0700
+++ b/piecrust/serving/wrappers.py	Wed May 17 00:11:48 2017 -0700
@@ -1,7 +1,6 @@
 import os
 import signal
 import logging
-import urllib.request
 
 
 logger = logging.getLogger(__name__)
@@ -99,11 +98,11 @@
 
 def _get_piecrust_server(appfactory, run_sse_check=None):
     from piecrust.serving.middlewares import (
-            StaticResourcesMiddleware, PieCrustDebugMiddleware)
+        StaticResourcesMiddleware, PieCrustDebugMiddleware)
     from piecrust.serving.server import WsgiServer
     app = WsgiServer(appfactory)
     app = StaticResourcesMiddleware(app)
     app = PieCrustDebugMiddleware(
-            app, appfactory, run_sse_check=run_sse_check)
+        app, appfactory, run_sse_check=run_sse_check)
     return app